Write a C++ Program by use switch statements for an ATM Simulator. ATM Simulator System is based on a concept of managin
Posted: Wed Apr 27, 2022 3:46 pm
Write a C++ Program by use switch statements for an ATM Simulator. ATM Simulator System is based on a concept of managing cash transactions of a personal account.
The system will display authentication screen at the start of program which will ask from user to input ATM number and pin number to proceed further.
On successful entry of both fields system will display dashboard to the user which includes withdrawal, deposits and balance inquiry options.
You need to consider the following exceptions for user transaction
· The program displays wrong selection message if a user enters wrong transaction option.
· The program will display invalid amount, if user enters amount <=0 or withdrawal amount is exceeding the current balance
Sample Input/output:
……………………………………………….
NBO ATM System Simulator
……………………………………………….
Enter Card No:856649548
Enter Pin:1234
Main Menu Transactions
[1] Withdraw
[2] Deposit
[3] Balance
___________________________________
Enter your choice:1/2/3
1- Withdraw
…………………………………………………………………..
Withdraw Transaction
…………………………………………………………………..
AVAILABLE BALANCE(OMR): 2500
ENTER THE AMOUNT(OMR): 150
Your remaining balance (OMR) is 2350
|||||||||||||||||||||||||||||||||||||||
PRINTING RECEIPT
|||||||||||||||||||||||||||||||||||||||
ATM TRANSACTION RECORD
DATE: 25/03/2021
TIME: 16:40:29
LOCATION: MUSCAT
TRANSACTION: WITHDRAW
AMOUNT: 150
CURRENT BAL(OMR): 2350
AVAILABLE BAL(OMR): 2350
|||||||||||||||||||||||||||||||||||||||
2- Deposit
…………………………………………………………………..
Deposit Transaction
…………………………………………………………………..
CURRENT BAL(OMR): 2350
ENTER THE AMOUNT(OMR): 3000
Your new available balance (OMR) is 5350
3- Balance
…………………………………………………………………..
Balance Transaction
…………………………………………………………………..
CURRENT BAL(OMR): 2350
The system will display authentication screen at the start of program which will ask from user to input ATM number and pin number to proceed further.
On successful entry of both fields system will display dashboard to the user which includes withdrawal, deposits and balance inquiry options.
You need to consider the following exceptions for user transaction
· The program displays wrong selection message if a user enters wrong transaction option.
· The program will display invalid amount, if user enters amount <=0 or withdrawal amount is exceeding the current balance
Sample Input/output:
……………………………………………….
NBO ATM System Simulator
……………………………………………….
Enter Card No:856649548
Enter Pin:1234
Main Menu Transactions
[1] Withdraw
[2] Deposit
[3] Balance
___________________________________
Enter your choice:1/2/3
1- Withdraw
…………………………………………………………………..
Withdraw Transaction
…………………………………………………………………..
AVAILABLE BALANCE(OMR): 2500
ENTER THE AMOUNT(OMR): 150
Your remaining balance (OMR) is 2350
|||||||||||||||||||||||||||||||||||||||
PRINTING RECEIPT
|||||||||||||||||||||||||||||||||||||||
ATM TRANSACTION RECORD
DATE: 25/03/2021
TIME: 16:40:29
LOCATION: MUSCAT
TRANSACTION: WITHDRAW
AMOUNT: 150
CURRENT BAL(OMR): 2350
AVAILABLE BAL(OMR): 2350
|||||||||||||||||||||||||||||||||||||||
2- Deposit
…………………………………………………………………..
Deposit Transaction
…………………………………………………………………..
CURRENT BAL(OMR): 2350
ENTER THE AMOUNT(OMR): 3000
Your new available balance (OMR) is 5350
3- Balance
…………………………………………………………………..
Balance Transaction
…………………………………………………………………..
CURRENT BAL(OMR): 2350