This set of labs should help you firm up your knowledge of Java's basic decision making structures as well as its supporting data type and operators.
You may do Programming Exercise P5.1 for (Level 1.5).
You may do Programming Exercise P5.2 for (Level 1.5).
You may do either of Programming Exercises P5.3 or P5.6 for (Level 1.5).
Write a program that prints the question "Do you want to continue?" (no quotes, of course) and reads a user input. If the user input is "Y", "Yes", "OK", "Sure", "Si", "Oui", or "Why not?", print out "OK". If the user input is "N", "No", "Non", or "Why?", then print out "Terminating". Otherwise, print "Bad input". The case of the user input should not matter. For example, "y" and "no" are also valid inputs. Write a class YesNoChecker for this purpose. This program is worth (Level 1.5).
You may do Programming Exercise P5.4 for (Level 1.5).
I'll add another (Level 0.5) if you make the presence/absence of F+ and F- configurable by the programmer (via constructor and/or mutator methods). (Question: What is an F- worth?)
I'll add another (Level 0.5) if you make the value of A+ configurable by the programmer to either 4.0 as is the A or to 4.3 just like the other +s. (This should be do-able via constructor and/or mutator methods.)
I'll add another (Level 0.5) if you make the value of + and - steps configurable by the programmer. (This should be do-able via constructor and/or mutator methods.) (Typical alternate values are 1.0/3 and 0.25.)
You may do Programming Exercise P5.5 for (Level 1).
You may do Programming Exercise P5.7 for (Level 1).
You may do Programming Exercise P5.8 for (Level 1).
You may do Programming Exercise P5.9 for (Level 1.5).
You may do Programming Exercise P5.10 for (Level 1).
You may do Programming Exercise P5.11 for (Level 1).
You may do Programming Exercise P5.12 for (Level 0.5).
I'll throw in another (Level 1) to research and implement both pre-Gregorian leap methodologies and the concept of the leap second.
You may do Programming Exercise P5.13 for (Level 1).
You may do Programming Exercise P5.14 for (Level 0.5).
You may do Programming Exercise P5.15 for (Level 1). Please note that 'rejecting' should not imply the display of spurious messages to the screen (or other devices) but rather the return of a false value to the caller (as opposed to a normal true return).
You may do Programming Exercise P5.16 for (Level 0.5).
You may do Programming Exercise P5.17 for (Level 2). (Note that this program is essentially enhancing P4.7...if that helps...)
You may do Programming Exercise P5.18 for (Level 2).
You may do Programming Exercise P5.19 for (Level 1.5).
You may do Programming Exercise P5.20 for (Level 1.5).
You may do Programming Project 5.2 for (Level 2).
This space reserved to add more labs...maybe...
Your target level for this lab set is (Level 5). Please, choose from the core choices to meet this goal. After you've met it, you may decide to improve the level total by selecting from the boosters below.
You may do any Programming Exercise or Project from the Core Choices that you did not already do for its listed level. Except that you cannot get full credit for P5.3 or P5.6 if you already chose the other. If you desire to do both of these Programming Exercises, the second one is worth only (Level 0.5).
You may combine Programming Exercises P5.4 and P5.5 into a single class for an additional (Level 1) beyond their original value total.
You may do Programming Project 5.1 for (Level 4).
This space reserved to add more boosters...