filmov
tv
How to create program money converter in Java (Project 1)

Показать описание
Solution Java Project1 (MoneyConvertor)
Description:
Write an application that prompts for and readsa double value representing a monetary amount. Then determine the fewest number of each bill and coinneeded to represent that amount, starting with the highest (assuming$10 bill is the maximum size needed).
Sample run:(Your sample runsmust follow the exact format.)
Enter monetary amount: 47.63
That's equivalent to:
4 ten dollar bills
1 five dollar bills
2 one dollar bills
2 quarters
1 dimes
0 nickels
3 pennies
Intro video credit by: velosofy
Description:
Write an application that prompts for and readsa double value representing a monetary amount. Then determine the fewest number of each bill and coinneeded to represent that amount, starting with the highest (assuming$10 bill is the maximum size needed).
Sample run:(Your sample runsmust follow the exact format.)
Enter monetary amount: 47.63
That's equivalent to:
4 ten dollar bills
1 five dollar bills
2 one dollar bills
2 quarters
1 dimes
0 nickels
3 pennies
Intro video credit by: velosofy