Problem 9
On paper, write a program that will display your name on the first line; your street address on the second line; your city, state, and ZIP code on the third line; and your telephone number on the fourth line. Place a comment with today’s date at the top of the program. Test your program by entering, compiling, and running it.
Problem 12
Which of the following are illegal variable names and why? x 99bottles july97 theSalesFigureForFiscalYear98 r&d grade_report
Problem 26
The variable a is a float and the variable b is a double. Write a statement that will assign the value of \(b\) to a without causing an error when the program is compiled.
Problem 27
Write a statement that declares a String variable named city. The variable should be initialized so it references an object with the string "San Francisco":
Problem 37
What import statement do you write in a program that uses the JOptionPane class?