|
Q001: RE: 790: 6c & 6d - Temperature Conversion.
EXPLAIN THIS LINE:
inputField1.setText("68");
|
|
Q002: Rewrite this statement using at least (2)
other font types. (Look them up.)
Font fonts = new Font("Helvetica",Font.BOLD,12);
|
|
Q003: EXPLAIN:
String s1 = inputField1.getText();
There are (2) steps here -- explain them.
Where did you find the answer?
|
|
Q004: EXPLAIN THIS CODE.
fahren = Integer.parseInt(s1);
what does this do?
are there any other functions like 'parseInt()'?
name them.
|
|
Q005: EXPLAIN THIS CODE.
double centigd = (5.00 / 9.00) * (fahren - 32);
what data type is fahren?
what does 'double' mean?
|
|
Q006: EXPLAIN THIS CODE.
g.drawString(fahren + " (Fahrenheit) = " + df.format(centigd) + " (Centigrade)",20,ver+20);
explain the '+' signs; explain 'df'
where on the screen was it written.
|