ATM Machine Simulation

Download Category:

ATM Machine Simulation.zip - (223.52 KB)
[
ATM Machine Simulation/ATM Machine Simulation.c
ATM Machine Simulation/ATM Machine Simulation.sln
ATM Machine Simulation/ATM Machine Simulation.suo
ATM Machine Simulation/ATM Machine Simulation.vcxproj
ATM Machine Simulation/ATM Machine Simulation.vcxproj.filters
ATM Machine Simulation/ATM Machine Simulation.vcxproj.user
ATM Machine Simulation/Debug/
ATM Machine Simulation/Debug/ATM Machine Simulation.exe
ATM Machine Simulation/Debug/ATM Machine Simulation.exe.embed.manifest
ATM Machine Simulation/Debug/ATM Machine Simulation.exe.embed.manifest.res
ATM Machine Simulation/Debug/ATM Machine Simulation.exe.intermediate.manifest
ATM Machine Simulation/Debug/ATM Machine Simulation.ilk
ATM Machine Simulation/Debug/ATM Machine Simulation.lastbuildstate
ATM Machine Simulation/Debug/ATM Machine Simulation.log
ATM Machine Simulation/Debug/ATM Machine Simulation.obj
ATM Machine Simulation/Debug/ATM Machine Simulation.pdb
ATM Machine Simulation/Debug/ATM Machine Simulation.vcxprojResolveAssemblyReference.cache
ATM Machine Simulation/Debug/ATM Machine Simulation.write.1.tlog
ATM Machine Simulation/Debug/ATM Machine Simulation_manifest.rc
ATM Machine Simulation/Debug/cl.command.1.tlog
ATM Machine Simulation/Debug/CL.read.1.tlog
ATM Machine Simulation/Debug/CL.write.1.tlog
ATM Machine Simulation/Debug/link.6184.read.1.tlog
ATM Machine Simulation/Debug/link.6184.write.1.tlog
ATM Machine Simulation/Debug/link.6184-cvtres.read.1.tlog
ATM Machine Simulation/Debug/link.6184-cvtres.write.1.tlog
ATM Machine Simulation/Debug/link.command.1.tlog
ATM Machine Simulation/Debug/link.read.1.tlog
ATM Machine Simulation/Debug/link.write.1.tlog
ATM Machine Simulation/Debug/link-cvtres.read.1.tlog
ATM Machine Simulation/Debug/link-cvtres.write.1.tlog
ATM Machine Simulation/Debug/mt.command.1.tlog
ATM Machine Simulation/Debug/mt.read.1.tlog
ATM Machine Simulation/Debug/mt.write.1.tlog
ATM Machine Simulation/Debug/rc.command.1.tlog
ATM Machine Simulation/Debug/rc.read.1.tlog
ATM Machine Simulation/Debug/rc.write.1.tlog
ATM Machine Simulation/Debug/vc100.idb
ATM Machine Simulation/Debug/vc100.pdb
ATM Machine Simulation/Question.txt
ATM Machine Simulation/Screenshot_1.png
]

Simulate the operations of an ATM machine. First, the customer is prompted to enter his personal identification number pin (for this case study, we test only if this pin is formed by 4 digits, otherwise a message like “Invalid PIN, try again…” will be displayed) and the user is re-prompted to enter the pin. The customer is given three chances to enter his pin. If he/she fails during the three trials you display a message like “Sorry you can’t continue, contact your bank for assistance.”
If the pin is correct (formed by 4 digits), then the system will ask the customer for the receipt (1 for YES and 2 for NO) and a menu will be displayed containing five possible options to choose from: Fast Cash, Deposit, Withdraw, Balance, and Get Card Back.
Here is an explanation of each of the 5 options:
Get card back: Display the message “Goodbye!” and exit program.
Fast Cash: Let the customer choose the amount of cash from a menu similar to the following:
Press 1–> $20.00 $40.00 $80.00 $100.00 Yes No Fast Cash Withdraw Deposit Check balance Get card back
Enter your choice: [4]
-clear screen-
Your balance is: $125.32
1-> Another Transaction Get Card Back Fast Cash Withdraw Deposit Check Balance Get card back
Enter your choice: [2]
-clear screen-
Enter amount (enter 0 to cancel): [300.00]
Sorry, not enough balance
Enter amount (enter 0 to cancel): [30.00]
Take your cash…
-clear screen-
Your balance is: $124.32
1-> Another transaction Get card back Fast Cash Withdraw Deposit Check Balance Get card back
Enter your choice: [8]
Invalid entry
-clear screen-
CHOOSE FROM THE FOLLOWING
1-> Fast Cash Withdraw Deposit Check Balance Get card back
Enter your choice: [5]
-clear screen-

Write a Review

Get a fresh solution of this question. Ask it now to our experts.
doubt

Ask Your Question

We have verified professionals who are ready to answer your question.

time

Save Time and Money

We choose experts who can quickly answer your question and that suit your budget.

download

Get Your Answer

Your satisfaction is 100% guaranteed. You can keep on asking questions until you get the answer you need.