Homework 4 Ideas
- The assignment
- THREE EXECUTABLES? REALLY
- This is not that tough.
- The input for the last one is easy.
- There are no errors to diagnose in the input
- The test driver for the second part are extremely easy.
- The test driver for the first part is not overwhelming.
- Let's try to build a change class.
- For the change class, we will store dollars and pennies.
- Pennies must be between -99 and 99
- What should this class look like?
- Member data?
- Probably ints for pennies and dollars.
- Any restrictions on the member data?
- Let's resrict the amounts to be positive.
- If the dollar amount is positive the penny amount should be positive as well.
- Should we limit the value of pennies?
- What should we do if...
- A negative amount is given?
- The number of pennies is greater than 99
- What about member functions?
- Constructor? What should it do?
- What Observers (Getters?)
- What Transformers (Setters?)