Triggering any transaction that produces receipt, receipt assumes the initial available cash as $100.
What steps will reproduce the problem?
Run the JAR file ATM System (java -jar "ATM System - Lab 1 Version 1.0.jar")
Turn the system on by pressing the "On" button.
Enter the number of $20 bills, for this case enter 4. (initial money in the ATM is set to $80)
Press to the "Click to insert card" button.
Enter 1 for the card number and press Enter.
Enter the valid PIN code, 42.
Trigger any transaction that produces receipt.
Receipt assumes initial available cash as $100 and updates it with the withdrawal amount or for the deposit transaction, receipt outputs available again $100 always.
What is the expected output? What do you see instead?
Triggering any transaction that produces receipt, receipt assumes the initial available cash as $100.
What steps will reproduce the problem?
Run the JAR file ATM System (java -jar "ATM System - Lab 1 Version 1.0.jar") Turn the system on by pressing the "On" button. Enter the number of $20 bills, for this case enter 4. (initial money in the ATM is set to $80) Press to the "Click to insert card" button. Enter 1 for the card number and press Enter. Enter the valid PIN code, 42. Trigger any transaction that produces receipt. Receipt assumes initial available cash as $100 and updates it with the withdrawal amount or for the deposit transaction, receipt outputs available again $100 always.
What is the expected output? What do you see instead?
Receipt WITHDRAWAL FROM: CHKG AMOUNT: $40.00 AVAILABLE: $60.00 (should be $40)
WITHDRAWAL FROM: CHKG AMOUNT: $40.00 AVAILABLE: $20.00 (should be $0)
Log file Message: WITHDRAW CARD# 1 TRANS# 1 FROM 0 NO TO $40.00 Response: SUCCESS Dispensed: $40.00
Message: WITHDRAW CARD# 1 TRANS# 2 FROM 0 NO TO $40.00 Response: SUCCESS Dispensed: $40.00
What version of the product are you using? On what operating system?
ATM Lab 1 Version 1.0.jar is running on Windows 7 - SP1(64 bit)
Please provide any additional information below