Answered step by step
Verified Expert Solution
Question
1 Approved Answer
i. C code (Efficient logic, use of loops and conditional statements) and testing. The comments for different steps in the code should be included [20
i. C code (Efficient logic, use of loops and conditional statements) and testing. The comments for different steps in the code should be included [20 Marks] ii. Short description of code and steps of development process to design the code including flow chart. ask 2. 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. 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
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started