Upload
joshua-miller
View
3
Download
0
Embed Size (px)
DESCRIPTION
atm
Citation preview
Lab Test : Core JAVA
Day: 151. Create an ATM cash deliver application which has method that take user amount as input through ATM machine and give the cash amount. ATM machine has the following bills of :
50 Rupees, 100 Rupees, 500 Rupees, and 1000 Rupees.
If user enters such amount which cannot be cash with given bill of rupees then prompt user:
a) Please Enter Valid Amount!...
b) Your amount must be at least in multiple of 50.
c) Your amount is larger than currently available amount in ATM
Note : ATM has limited numbers of bills that decreases per transaction if there is no cash in ATM then prompt user to Sorry!.. No AmountPrint a receipt after transaction on user choice that will have description as follows:1000 X 1 = 1000 500 X 1 = 500
100 X 4 = 400
50 X 1 = 50
Total Amount: 1950 Rs.Thank You For Using TCS Bank