HW: Write a program that
selects a number between 0 and 10 at random and then gives the user 3
guesses to guess it. When the user is wrong, indicate whether the guess is
too high or too low.
Week 4: Looping control
structures. (Liang, finish Chapter 3)
HW: Rewrite the homework from
last week to use a loop. Use either a while loop or a for
loop.
HW: p 285, #7.1. Allow the user to repeat this operation
as often as desired. In other words, the
main() program should
have a loop.
HW: p 285, #7.5. Allow the
user to repeat this operation as often as desired. In other words, the
main() program should have a loop.
HW: p 285, #7.6. Instead of
passing the data as command-line input, read the input as a single string
after the program starts. Use a StringTokenizer to separate the input into
separate integers.
HW: p 623, #13.1. Modify the
third homework from last week to use exception handling to catch and
record non-integer inputs. Find the total of all the valid inputs
and produce a list of the non-valid inputs after reporting the sum.
You will need a String Array to keep track of the invalid inputs.
HW: p 624, #13.3 Instead of
the GUI expected by the problem, use a JOptionPane window. Use exception
handling to report both non-integer index requests and
out-of-bounds requests. Allow the user to repeat this operation as
often as desired. In other words, the main() program should have a loop.
Week 10: Introduction to Files. (Liang, Chapter 17, through
Print Streams (lightly))