1. Engineering
  2. Computer Science
  3. have to code this in java thanks...

Question: have to code this in java thanks...

Question details

Be careful -files from the Internet can contain viruses. Unless you need to edit its safer to stay in Protected View. Exercise #3: Design and implement a program (name it coins) that determines the values of coins in a jar. The program prints out the total dollars and cents in the jar. The program prompts the user to enter the number of coins (quarters, dimes, nickels, and pennies). Print out the numbe of coins entered for each coin type on separate lines followed by the total amount of money in the jar as dollars and cents as shown below. Sample run 1: Enter number of quarters: 2 Enter number of dimes: 2 Enter number of nickels: 2 Enter number of pennies: 2 You entered 2 quarters You entered 2 dimes You entered 2 nickels You entered 2 pennies Your total is 0 Dollars and 82 Cents. Sample run 2: Enter number of quarters: 3 Enter number of dimes: 0 Enter number of nickels: 0 Enter number of pennies: 3 You entered 3 quarters You entered 0 dimes You entered 0 nickels You entered 3 pennies Your total is 0 Dollars and 78 Cents Sample run 3: Enter number of quarters: 2 Enter number of dimes:3 Enter number of nickels: Enter number of pennies: 5

Have to code this in Java thanks

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution