Question: C programming: simulate an atm machine using functions, loops, arrays, pointers & label the process. COP 2220 C Programming Term Projet In this project we
C programming: simulate an atm machine using functions, loops, arrays, pointers & label the process. COP 2220 C Programming Term Projet In this project we shall simulate the operations of an ATM machine. Suppose you're in charge of this simulation and here is a scenario of what is required to do: The customer will be assigned a random number for his/her balance. First, the customer is prompted to enter his personal identification number pin (for 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 tri als 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 displayed containing five possible options to choose from: Fast Cash, Deposit, Withdraw, Balance and Get Card Back. Here is the explanation of each of the 5 options: Get Card Back: Display the message "Goodbye! "and exit the program. Fast Cash: Let the customer choosing the amount of cash from a menu similar to the tollowing Press: 1$20.00 3$80.00 40.002 $100.00
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
