Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C programming: simulate an atm machine using functions, loops, arrays, pointers & label the process. COP 2220 C Programming Term Projet In this project we

image text in transcribed 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Beginning ASP.NET 4.5 Databases

Authors: Sandeep Chanda, Damien Foggon

3rd Edition

1430243805, 978-1430243809

Students also viewed these Databases questions