Question: Use Java to do this. Write a void method MakeChange that expects a single int argument (less than 100) and displays how to make change
Use Java to do this. Write a void method MakeChange that expects a single int argument (less than 100) and displays how to make change using a minimum number of coins. This method should use three methods Quarters, Dimes and Nickelseach of which also takes a single int argument and returns the maximum number of coins of that denomination that could be used. Write a driver program that prompts a user for an amount and, if the amount is sensible, invokes MakeChange. To make the program modular, you should write separate methods for input validation, displaying results, etc.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
