Question: ATM.java Requirements: A bank would like to have a program for its ATM department that allows the user to enter a value in whole dollars

ATM.java

Requirements: A bank would like to have a program for its ATM department that allows the user to enter a value in whole dollars and then displays the combination of twenties, tens, fives, and ones such that each denomination is maximized in order by twenties, tens, fives, and ones. The input value should not exceed 500 dollars.

Design: The bank would like the max input to be 500 and if the user enters an amount greater than the max the output will print Limit of $500 exceeded!.

Code: You must read in a value and store it in a variable of type int, calculate the number of each denomination(twenties, tens, fives, and ones) and store each value in a variable of type int. It is recommended as a practice that you do not modify any input values once they are stored. Your expressions should contain only int variable or int literals.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!