Question: Write a java program (Name it Lab2Exercise4) that determines the values of coins in a jar and prints out the total dollars and cents. The
Write a java program (Name it Lab2Exercise4) that determines the values of coins in a jar and prints out the total dollars and cents. The program prompts the user to enter the number of coins (quarters, dimes, nickels, and pennies). Print out the number of coins entered for each coin type on separate lines followed by the total amount of money in the jar as dollars and cents, such as: Total = 321 dollars and 34 Cents. Use proper labels for all outputs and comment your code properly.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
