Question: Enhance the DollarAmount with a constructor that receives two parameters representing the whole number of dollars and the whole number of cents. Use these to
Enhance the DollarAmount with a constructor that receives two parameters representing the whole number of dollars and the whole number of cents. Use these to calculate and store in the data member amount the total number of pennies. Test the class with the new constructor.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
