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.