Write a program that helps the user count his change. The program should ask how many quarters the user has, then how many dimes, then how many nickels, then how many pennies. Then the program should tell the user how much money he has, expressed in dollars.
note:
a quarter is worth 0.25 dollars
a dime is worth 0.10 dollars
a nickle is 0.05 dollars
a penny is 0.01 dollars
Use the javax package
Input:
Quarter:______
Dime:________
Nickle:_______
Penny:_______
Output
Total Amount $:_____________
0 Comments