Get Instant Help From 5000+ Experts For
question

Writing: Get your essay and assignment written from scratch by PhD expert

Rewriting: Paraphrase or rewrite your friend's essay with similar meaning at reduced cost

Editing:Proofread your work by experts and improve grade at Lowest cost

And Improve Your Grades
myassignmenthelp.com
loader
Phone no. Missing!

Enter phone no. to receive critical updates and urgent messages !

Attach file

Error goes here

Files Missing!

Please upload all relevant files for quick & complete assistance.

Guaranteed Higher Grade!
Free Quote
wave
Complete Debit Transaction Program Using State Machine Diagram & Standard Design Methodology

Follow the State Machine Diagram from Slide Set

Complete the partially finished Debit Transaction program using DebitDemoTemplate.zip and the state machine diagram shown on page 14 of the slide set titled “Week 10 Switch Statement and State Machines.pptx” Normally, in a program like this when state 4 is reached we would read the users PIN using keys pressed from a keyboard. In this assignment you can use the characters entered via the serial port as your keyboard. You can check the validity of the user’s PIN at state 4 or when you send the data to the bank. Send either a C or S down the serial port along with the amount as a message to the bank. Send C if the transaction is from the Chequing account and S if from the savings. In state 5 you will wait for the characters “OK” to appear on the serial port indicating confirmation from the bank that there is money in the acct (and if you didn’t check in state 4, that the pin is ok)*. Choose some other response from the bank (again being received on the serial port) to indicate that something was wrong and that the transaction should be canceled. Follow our Standard Design Methodology and Identify, name and determine the input, process and output for all needed functions.

support
close