Question: on jgraps please, using java Write a program that utilizes the Scanner class and asks the user to enter 5 integer values representing the number
Write a program that utilizes the Scanner class and asks the user to enter 5 integer values representing the number of pennies, number of nickels, number of dimes, number of quarters, and the number of half dollars the user has. Calculate the total amount coins to dollar value (as a double variable). Calculate the total number of coins (as an integer). Dispaly the total number of coins and the total dollar amount. Math formulas needed: The total number of coins is number of pennies + number of nickels + number of dimes + number of quarters + number of half dollars The total dollar amount is the number of pennies * 0.01) + (number of nickels * 0.05) + (number of dimes * 0.10) + (number of quarters * 0,25) + (number half dollars * 0.50)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
