Question: this is for JAVA hello i need to write an application that prompts for and reads a double value representing a monetary amount. Then determine
this is for JAVA hello i need to write an application that prompts for and reads a double value representing a monetary amount. Then determine the fewest number of each bill and coin needed to represent that amount, starting with the highest (assume that a ten-dollar bill is the maximum size needed). For example, if the value entered is 47.63 (forty-seven dollars and sixty-three cents), then the program should print the equivalent amount as shown below. Continue prompting until the user enters quit.
4 ten dollar bills
1 five dollar bills
2 one dollar bills
2 quarters
1 dimes
0 nickels
3 pennies
THIS PART IS VERY IMPORTANT must develop at least one class (excluding the driver class) for this particular assignment. must also use a try-catch statement in your driver class to handle invalid input entered by the user (e.g. an invalid string is entered instead of a double). In the event of such an exception, print a statement indicating the exception occurred as follows and continue looping until the user enters quit.
EXCEPTION: Invalid input
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
