MIAC HW2】的更多相关文章

MIAC的第二次作业,翻了一些fashion网站找了点灵感,重新设计了一下UI. 因为给的html里有nav之类的HTML5新特性,所以索性就不管IE的兼容了.chrome下的效果: FF下也差不多.这次作业试用了一下google font,果然好用(虽然载入速度不快&没中文),本来想用Raleway的extra light做h2字体的,发现chrome居然渲染不出它的extra light(FF正常),最后选了Josephin Sans. 其他的收获: 1. fashion网站都爱黑白配,真的…
MODEL //yuec2 Yue Cheng package hw2; import java.io.File; import java.io.FileNotFoundException; import java.util.HashMap; import java.util.Scanner; import javafx.beans.property.StringProperty; import javafx.collections.FXCollections; import javafx.co…
Fault的定义:可能导致系统或功能失效的异常条件(Abnormal condition that can cause an element or an item tofail.),可译为“故障”.   Error的定义:计算.观察或测量值或条件,与真实.规定或理论上正确的值或条件之间的差异(Discrepancy between a computed, observed or measured value or condition and the true, specified, or the…
import java.util.Scanner; public class Solution { public static void main(String[] args) { Scanner input = new Scanner(System.in); System.out.print("Enter the time zone offset to GMT: "); int offset = input.nextInt(); input.close(); long totalMi…
import java.util.Scanner; public class Solution { public static void main(String[] args) { Scanner input = new Scanner(System.in); System.out.print("Enter v and a: "); double v = input.nextDouble(); double a = input.nextDouble(); input.close();…
import java.util.Scanner; public class Solution { public static void main(String[] args) { Scanner input = new Scanner(System.in); System.out.print("Enter v0, v1 and t: "); double v0 = input.nextDouble(); double v1 = input.nextDouble(); double t…
import java.util.Scanner; public class Solution { public static void main(String[] args) { Scanner input = new Scanner(System.in); System.out.print("Enter the side: "); double side = input.nextDouble(); input.close(); double area = 3 * Math.pow(…
import java.util.Scanner; public class Solution { public static void main(String[] args) { Scanner input = new Scanner(System.in); System.out.print("Enter three points for a triangle: "); double x1 = input.nextDouble(); double y1 = input.nextDou…
import java.util.Scanner; public class Solution { public static void main(String[] args) { Scanner input = new Scanner(System.in); System.out.print("Enter x1 and y1: "); double x1 = input.nextDouble(); double y1 = input.nextDouble(); System.out.…
public class Solution { public static void main(String[] args) { char outcome; long randomNumber; while(true) { randomNumber = System.currentTimeMillis() % 91; if(randomNumber >= 65 && randomNumber <= 90) break; } outcome = (char)randomNumbe…