This site requires JavaScript, please enable it in your browser!
Greenfoot back
DPD4AU
DPD4AU wrote ...

2013/1/29

ATM

DPD4AU DPD4AU

2013/1/29

#
I'm creating a program that requires user input to determine what kind of bills are needed. First, "Enter the amount:" will appear. Then the user will type a number. If the amount typed in is greater than $300, the statement "Limit of $300 exceeded!" appears. If the amount typed in is between 0 and 300, than "Bills by denomination:" will appear and than a calculation takes place that returns how many $20 dollar bills, $10 dollar bills, $5 dollar bills and $1 dollar bills are needed to reach the desired amount that was given in the input. I know i have to use the Scanner to get user input, but how do I go about attacking this calculation?
DPD4AU DPD4AU

2013/1/29

#
Nevermind. Figured it out.
You need to login to post a reply.