Академический Документы
Профессиональный Документы
Культура Документы
1. Style of Programming
2. Main Menu
Select an option :
3. Balance Amount
4. Case Insensitive
c. Make the program in such a way it can handle both lower case and
upper case menu selection.
d. From the main menu, 'b' or 'B' will select the "Check for balance"
option.
a. If user enters an invalid option from the main menu, the system will display
the
error message below.
b. If the user enters an invalid option from the prompt below, the system will
display "Invalid entry, enter Y or N only"
6. If 'B' is entered from the main menu, the current balance will be displayed.
Your current balance is 100000
7. If 'D' is entered from the main menu. The system will ask to enter for
the deposit amount. The deposit amount will be added to the balance.
8. If 'W' is entered from the main menu. The system will ask to enter for
the Withdrawal amount. The withdrawal amount will be deducted from the balance.
d. If amount is valid, it will be deducted from the current balance and display
the message below.
Enter amount to Withdraw : 30000
Withdrawal Transaction is successfully completed.
10. After balance inquiry (B), deposit (D) or withdrawal (W), the system will ask
the user if another transaction will be made.
-------------------------------------------------------
SAMPLE PROGRAM OUTPUT
-------------------------------------------------------
Select an option : x
2. When you select 'b', it will show you the current balance.
Select an option : b
4. When you enter 'd', you will be asked to enter for the deposit amount.
If the amount value is valid, it will display the message
"Deposit Transaction is successfully completed." and the deposit amount
will be added to the balance.
Select an option : d
Select an option : b
6. When you enter 'w', you will be asked to enter for the withdrawal amount.
If the amount value is valid, it will display the message
"Withdrawal Transaction is successfully completed." and the witdrawal amount
will be deducted from the balance.
Select an option : w
Select an option : b
7. When you select 'q' from the main menu or respond with 'N' on the prompt, you
will
exit from the program.
Select an option : q
8. When you respond with 'N' on the prompt, you will exit from the program.