Your program demonstration algorithm:
the objective is to display this 6 items but first they need to choose number 1 which is the open bank account, if they choose other number, it will come up with error and it will just comeback to the menu that is my first problem, cant do it, second problem after creating a bank account, all the options will be enabled but they cannot create a bank account again, they should close it first, third problem if they deposit, there will be 500 minimuim deposit, and if they withdraw they cannot withdraw exceeding to that 500, i will post more organized code, i had here a algorithm for the initial deposit, but its not working |
Gomez Banking Systems
////////////////////////////////////////////////////////
Step 0 : Inits (openBank = false)
////////////////////////////////////////////////////////
Step 1 : Displays 6 items, inputs (number)
////////////////////////////////////////////////////////
Step 2 : (number == 1) //Opening the bank account
Case 0 : (openBank == false) Opens the bank account, Inputs name, openBank = true goto Step 1
Case 1 : (openBank == true) Displays an error Msg, goto Step 1
////////////////////////////////////////////////////////
Step 3 : Check (number)
If (number != 1) and (openBank == false) Displays an error Msg, goto Step 1
Else Commands.... (Not given)
////////////////////////////////////////////////////////
Does this help?