Question: java for beginners please. simple and basic Counting Monetary Units Write a program that prompts the user for a double value representing a total number
Counting Monetary Units Write a program that prompts the user for a double value representing a total number in dollars and cents. The program will classify the given amount of money into smaller monetary units. In particular, the program will report a list of the monetary equivalent in dollars, quarters, dimes, nickels, and pennies, as shown in the sample output: Sample Run: Enter an amount in double for dollars: $11.56 Your amount $11.56 consists of: 11 dollars 2 quarters O dimes 1 nickles 1 pennies
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
