Write a Java program that can "make change." Your program should take two numbers as input, one that is a monetary amount charged and the other that is a monetary amount given. It should then return the number of each kind of bill and coin to give back as change for the difference between the amount given and the amount charged. The values assigned to the bills and coins can be based on the monetary system of any current or former government. Try to design your program so that it returns the fewest number of bills and coins as possible.
Write a Java program that can "make change." Your program should take two numbers as input, one that is a monetary amount charged and the other that is a monetary amount given. It should then return the number of each kind of bill and coin to give back as change for the difference between the amount given and the amount charged. The values assigned to the bills and coins can be based on the monetary system of any current or former government. Try to design your program so that it returns the fewest number of bills and coins as possible.
Related questions
Question

Transcribed Image Text:Write a Java program that can "make change." Your program should take two numbers as input, one that is a monetary
amount charged and the other that is a monetary amount given. It should then return the number of each kind of bill
and coin to give back as change for the difference between the amount given and the amount charged. The values
assigned to the bills and coins can be based on the monetary system of any current or former government. Try to
design your program so that it returns the fewest number of bills and coins as possible.
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 3 steps with 1 images
