Consider an automated teller machine (ATM) in its simplest form as shown in the figure. Initially,...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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. The marks for Task 2 are distributed in the following: 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. [30 Marks] 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. The marks for Task 2 are distributed in the following: 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. [30 Marks]
Expert Answer:
Related Book For
Posted Date:
Students also viewed these finance questions
-
A cast-steel C frame as shown in the figure has a rectangular cross section of 1 in by 1.6 in, with a 0.4-in-radius semicircular notch on both sides that forms midflank fluting as shown. Estimate A,...
-
A cast-steel C frame as shown in the figure has a rectangular cross section of 1.25 in by 2 in, with a 0.5-in-radius semicircular notch on both sides that forms midflank fluting as shown. Estimate A,...
-
A shock mount constructed as shown in the figure is used to support a delicate instrument. The mount consists of an outer steel tube with inside diameter b, a central steel bar of diameter d that...
-
Lavage Rapide is a Canadian company that owns and operates a large automatic car wash facility near Montreal. The following table provides data concerning the company's costs: Fixed Cost Cost per Car...
-
Maurer Corporation had these transactions pertaining to debt investments: Jan. 1 Purchased 90 10%, $1,000 Landis Co. bonds for $90,000 cash. Interest is payable semiannually on July 1 and January 1....
-
1. A ball is thrown into the air from a height of 96 ft above the ground, and its height is given by S = 96 + 32t - 16t2, where t is the time in seconds. (a) Find the values of t that make S = 0. (b)...
-
What are the main functions performed by mentors, and what effect do they have on protgs? Do you think organizations should implement formal mentoring programs or should they remain informal? What...
-
Danner Corporation and London Corporation, two companies of roughly the same size, are both involved in the manufacture of shoe tracing devices. Each company depreciates its plant assets using the...
-
How/why are banks and non-bank loan-making companies using risk transfer securities (like the securitization of yacht loans by Credit Swiss)? Who will bear the final loss if there are defaults or...
-
Comprehensive Problem 1 - Part 1: Taxpayer information, Form 1040, Schedules 1, 2, 3 and 4, Schedule A, and Schedule B. Noah and Joan Arc's Tax Return Note: This problem is divided into three parts....
-
.12 A 280-mm diameter cylinder fitted with a frictionless leakproof piston contains -02 kg of steam at a pressure of 600 x 10 N/m and a temperature of 200 C. As the piston moves slowly outwards...
-
You have $6,000 to invest, and you do not need to collect on your investment for 21 years. . Option 1: You can buy a zero coupon bond with a face value of $14,000 that matures in 21 years. . Option...
-
What is the router ID and how is it configured in an OSPF network? How is it also configured in an OSPFv3 network?
-
Compare and contrast each of the following types of systems, and support each type separately with a use of an example: Real-time systems Data-processing systems Decision-support systems Expert...
-
Chrissy Tegan is about to begin a recurring annual audit engagement. As the continuing auditor, her independence would ordinarily be considered to be impaired if the previous ycar's audit fee: Was...
-
Mr. Kofi Tieku who has been operating a trading business, "DANCLAY MERCHANTS", for several years in Kumasi presents the following Profit and Loss account: DANCLAY MERCHANTS PROFIT AND LOSS ACCOUNT...
-
Station 19 Ltd. is a CCPC. Maya, one of the employees, was granted a stock option on February 5, 2018 for 10,000 shares at $6 per share. Maya exercised the option on May 30, 2019 when the market...
-
The maximum pressure that can be developed for a certain fluid power cylinder is 15.0 MPa. Compute the required diameter for the piston if the cylinder must exert a force of 30 kN.
-
Lane had a boat dealership in North Carolina. In February, he sold a new boat, a 120-HP motor, and a trailer to a man who represented himself to be John Willis. Willis gave Lane a check for $6,285...
-
In negotiations for the purchase of a ranch, Adler (the seller) discussed water rights with Folt, the buyer. Adler never mentioned an ongoing dispute she had over such rights with a neighboring...
-
Give specific examples of a barter transaction, a sale for money transaction, and a transaction that combines the two. Identify the advantages and disadvantages of each kind of transaction.
-
The change in the annual spending rate, in conjunction with the boards expectations regarding future enrollment and the need for endowment support, could justify that KUEs target weight for: A....
-
Which of the characteristics put forth by Chaterji to describe the factor-based approach is/are correct? A. Only Characteristic 1 B. Only Characteristic 2 C. Both Characteristic 1 and Characteristic...
-
Based on Exhibits 1 and 2, to attempt to profit from the short-term excess return forecast, Capara should increase KUEs portfolio allocation to: A. developed markets equity and decrease its...
Study smarter with the SolutionInn App