Question: write a complete C++ program for a bank which uses the class implemented in Part (1). This program should provide the following menu for a

write a complete C++ program for a bank which uses the class implemented in Part (1). This program should provide the following menu for a particular bank account. Hint: You first need to create an Account object.

1. Change the account balance

2. Get the current balance

3. Deposit

4. Withdrawal

5. Plan your future balance

6. Mortgage plan

7. Exit

Sample Run:

1. Change the account balance

2. Get the current balance

3. Deposit

4. Withdrawal

5. Plan your future balance

6. Mortgage plan

7. Exit

Enter your selection: 1

Enter a new account balance: 300000

New account balance is 300000 TL

1. Change the account balance

2. Get the current balance

3. Deposit

4. Withdrawal

5. Plan your future balance

6. Mortgage plan

7. Exit

Enter your selection: 2

Account balance is 300000 TL

1. Change the account balance

2. Get the current balance

3. Deposit

4. Withdrawal

5. Plan your future balance

6. Mortgage plan

7. Exit

Enter your selection: 3

Enter an amount for deposit: 20000

New account balance is 320000 TL

1. Change the account balance

2. Get the current balance

3. Deposit

4. Withdrawal

5. Plan your future balance

6. Mortgage plan

7. Exit

Enter your selection: 4

Enter an amount for withdrawal: 400000

No sufficient amount in the bank account

New account balance is 320000 TL

1. Change the account balance

2. Get the current balance

3. Deposit

4. Withdrawal

5. Plan your future balance

6. Mortgage plan

7. Exit

Enter your selection: 4

Enter an amount for withdrawal: 20000

New account balance is 300000 TL

1. Change the account balance

2. Get the current balance

3. Deposit

4. Withdrawal

5. Plan your future balance

6. Mortgage plan

7. Exit

Enter your selection: 5

Enter an annual interest rate: 0.05

Enter a number of years: 3

You balance will be 347287.5 TL after 3 years with the interest rate 0.05

1. Change the account balance

2. Get the current balance

3. Deposit

4. Withdrawal

5. Plan your future balance

6. Mortgage plan

7. Exit

Enter your selection: 6

Enter a total amount of a mortgage: 100000

Enter an annual mortgage interest rate: 0.089

Enter an annual interest rate: 0.05

You require 11 years to pay

1. Change the account balance

2. Get the current balance

3. Deposit

4. Withdrawal

5. Plan your future balance

6. Mortgage plan

7. Exit

Enter your selection: 7

Goodbye!

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!