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

Guidelines § Codeshould be properly aligned and well commented. § Followc/c++ ru

ID: 3612086 • Letter: G

Question

Guidelines

§         Codeshould be properly aligned and well commented.

§         Followc/c++ rules while writing variables names, function names etc

§         Use onlydev-C++ for this assignment.

Assignment

Problem Statement:

     Balance to showbalance.

    New Balance to get Newbalance from the user.

    Adjustment in order todo the adjustment in balance.

    Annual Interest Rate isused for the calculation of the interest.

    Interest data member toshow the interest amount.

    Deposit () to despiteamount in the account.

     Withdrawal () towithdraw the amount from the bank.

    Balance () functionfor displaying the current balance.

     InterestRate () to setthe interest rate. You must get interest

         rate from theuser.                                        

     AnnualInterest () isused to calculate the interest. The interest

      calculated should be deductedfrom the balance and the new balance

      after the deduction should beshown to the user.

1: Deposit

2: Withdraw

3: Get Balance

4: Set annual interest rate

5: Calculate interest

Perform appropriate function when users select the option. Ifoption is wrong then display the appropriate message. You shouldalso give option to the user if he/she wants to perform morefunctions.

Guidelines

§         Codeshould be properly aligned and well commented.

§         Followc/c++ rules while writing variables names, function names etc

§         Use onlydev-C++ for this assignment.

Assignment

Problem Statement:

  1. Create a BankTransaction class.
  2. Create following static data members:

     Balance to showbalance.

    New Balance to get Newbalance from the user.

    Adjustment in order todo the adjustment in balance.

    Annual Interest Rate isused for the calculation of the interest.

    Interest data member toshow the interest amount.

  1. Create constructor which display message whenobject is created.
  2. Create destructor which display message whenan object is destroyed.
  1. Bank Transaction class have following public memberfunctions:    

    Deposit () to despiteamount in the account.

     Withdrawal () towithdraw the amount from the bank.

    Balance () functionfor displaying the current balance.

     InterestRate () to setthe interest rate. You must get interest

         rate from theuser.                                        

     AnnualInterest () isused to calculate the interest. The interest

      calculated should be deductedfrom the balance and the new balance

      after the deduction should beshown to the user.

  1. Now in the main; display a menu.

1: Deposit

2: Withdraw

3: Get Balance

4: Set annual interest rate

5: Calculate interest

Perform appropriate function when users select the option. Ifoption is wrong then display the appropriate message. You shouldalso give option to the user if he/she wants to perform morefunctions.

Explanation / Answer

Guidelines § Codeshould be properly aligned and well commented. § Followc/c++ ru