Computer Science, asked by mnmshajahan2562, 1 month ago

Write a program which will perform different operations of a
bank by using a menu driven process. The process will run infinite
times. It will display the menu 1) Create account 2) Deposit, 3)
Withdraw, 4) Balance enquiry, 5) Address change 6) Exit.
Data variables are String name, address, phone. int balance,
Option 1 ) will input details of the customer from user.
option 2 ) will accept amount from user and increase balance of the
customer.
option 3) will input the amount which the customer wants to withdraw.
It will check after withdrawing in the account minimum amount should
be >=2000. Then it will display "Successful" , otherwise it will display
"Insufficient balance". Balance amount should decrease if transaction is
possible.
Option 4) It will display name and balance
Option 5) It will receive new address of the customer
Option 6) Will terminate the loop.

Answers

Answered by rashmisethi337
0

Answer:

Practice. Menu-driven "bank account" application

In current practice lesson we are going to develop a menu-driven application to manage simple bank account. It supports following operations:

deposit money;

withdraw money;

check balance.

Application is driven by a text menu.

Draw your attention to boolean variable quit, which is responsible for correct loop interruption. What a reason to declare additional variable, if one can check exit condition right in while statement? It's the matter of good programming style.

Similar questions