Consider an automated teller machine (ATM) in its simplest form as shown in the figure. Initially, the ATM machine is in the Idle state, when a user inserts the card then it updates the state and processes the card. After the card processing, ATM changes its state and ask the user to enter the PIN number. Consequently, after getting the correct PIN number it provides the options such as balance inquiry, cash withdrawal, bill payment or cash deposit and the state is updated accordingly. When the task is completed, it returns the card to the user and updates its state to idle state.
Page 3 of 4
Write a C program that simulate this ATM machine. Furthermore, you are required to write a short report to show steps of your design and code review process.
this is a sample question
=============================