Question: 1. Write a program called Dollars that allows the user to enter an integer number of dollars and calculates and displays the conversion into currency
1. Write a program called Dollars that allows the user to enter an integer number of dollars and calculates and displays the conversion into currency denominations20s, 10s, 5s, and 1s.
2. The conversion algorithm should return the smallest number of bills needed for the conversion. For example, $15 should break down into 1 $10 and 1 $5.
3. Enter a number of dollars 3025 $3025 converted is 151 $20s, 0 $10s, 1 $5s, and 0 $1s
It has to be for Java
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
