Lesson A3 - Primitive Data Types |
|
|
Coins Background: Some cash register systems use change machines that automatically dispense coins. This lab will investigate the problem solving and programming behind such machinery. You always want to use the fewest coins possible. You should use integer mathematics to solve this problem. Provide the number of cents through the constructor. Write a method that calculates the number of each type of coin.
Assignment:
|
|