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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started