Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

This is for my Programming Logic and Design class. Use Microsoft Word . Write th

ID: 3699545 • Letter: T

Question

This is for my Programming Logic and Design class.

Use Microsoft Word .

Write the pseudo code for the following scenario. You cannot use global variables. You have to use local variables and methods which may take parameters or not.

You have to write the pseudocode to mimic and ATM machine. Assume the original balance is $5000.

Your program must contain methods to:- Display the choices to him ( a - deposit, b - withdraw , c - balance inquiry) and get the choice. Based on the choice call the methods to deposit , withdraw or balance inquiry. Do some error checking such as - if the user tries to withdraw more than the balance - display an error message that withdrawl denied. If after the withdrawl his balance is Below $100 - display a warning stating "Balance below $100".

Explanation / Answer

PROCEDURE Choices

   

BEGIN

   

        display customer services: a - deposit, b - withdraw , c - balance inquiry

        input selection from keypad

        CASE OF selection:

            WHEN deposit

            BEGIN

                CALL PROCEDURE Deposit

            END

           

            WHEN withdrawal

            BEGIN

                CALL PROCEDURE Withdrawal

            END

           

            WHEN displaybalance

                get and display balance

            END

        ENDCASE

END Services

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote