Write a java program named: CoinConverter.java (Note: We do not need loops for this program.) This program will prompt the user for a number of cents, reading in the value from the keyboard. The number entered should be an integer. Using the value entered, calculate and print the number of quarters, dimes, nickels and/or pennies needed to achieve the value entered. If no coins of a denomination are needed, print 0 that value (e.g., if only quarters and pennies are needed, print "0 dimes" and "0 nickels"). Make sure you print only "quarter", "dime", "nickel" or "penny" when only 1 coin is required. NOTE: For full credit, place the user input on the new line (just use println in your prompt).
Write a java
(Note: We do not need loops for this program.)
This program will prompt the user for a number of cents, reading in the value from the keyboard. The number entered should be an integer.
Using the value entered, calculate and print the number of quarters, dimes, nickels and/or pennies needed to achieve the value entered. If no coins of a denomination are needed, print 0 that value (e.g., if only quarters and pennies are needed, print "0 dimes" and "0 nickels"). Make sure you print only "quarter", "dime", "nickel" or "penny" when only 1 coin is required.
NOTE: For full credit, place the user input on the new line (just use println in your prompt).

Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 2 images









