Homework Notes
This page includes notes and clarifications for homework problems.
- Ch3 #5: Write down your answer without running the program, then check if you were right!
- Ch3 #6: Write down your answer without running the program, then check if you were right!
- Ch3 #8: Your program class should be called
CelciusToFahrenheit
. Your program should get input from the user using the Scanner. - Ch4 #2: Again, try an answer the question without running the program.
- Ch5 #5: Your program can include multiple 'if' and 'else' statements.
- Ch6 #2: Only
for
andwhile
loops. - Ch6 #24: You can either use the String Formatting described in the chapter, or use a nested loop to print out single spaces (using System.out.print()).
- Ch7 #15: You do not need to disallow purchases if points are negative.