![]() |
![]() |
|
home—info—lects—labs—exams—hws
tutor/PIs—breeze (snow day)
Object120 + its docs—java.lang docs—java.util docs
Complete the following exercises from the textbook. Submit just one program file; include the answers to the written problems as a comment at the start of your program.
You'll need to think closely about how your program will work,
and what appropriate named constants you might use.
In particular, when transitioning from project 8.1 to 8.3,
you'll have a decision to make make about your data representation
(good ol' step 1 of the design recipe).
As always -- work incrementally: start with small/stub methods,
and then gradually add more functionality.
Develop this program without using BlueJ --
just use a text editor and compile/run your program using the
commands
Note that you do not need to handle bad-input entered by the user (e.g. if they type in 101, it's okay for your program is allowed to crash). 3pts extra credit if your program never crashes on any input.
As long as the output looks similar to what is suggested,
it's okay.
In particular, the row-headers can be slightly different lengths,
due to
home—info—lects—labs—exams—hws
tutor/PIs—breeze (snow day)
Object120 + its docs—java.lang docs—java.util docs
©2012, Ian Barland, Radford University Last modified 2012.Nov.18 (Sun) |
Please mail any suggestions (incl. typos, broken links) to ibarland ![]() |
![]() |