Problem Statement: 1. Create a BankTransaction class. 2. Create following static
ID: 3612083 • Letter: P
Question
Problem Statement:
1. Create a BankTransaction class.
2. Create following static data members:
Balance to show balance.
New Balance to get New balance from theuser.
Adjustment in order to do the adjustmentin balance.
Annual Interest Rate is used for thecalculation of the interest.
Interest data member to show the interestamount.
3. Create constructor which display message whenobject is created.
4. Create destructor which display message whenan object is destroyed.
5. Bank Transaction class have following publicmember functions:
Deposit () to despite amount in theaccount.
Withdrawal () to withdraw the amount fromthe bank.
Balance () function for displaying thecurrent balance.
InterestRate () to set the interest rate.You must get interest
rate from theuser.
AnnualInterest () is used to calculate theinterest. The interest
calculated should be deducted fromthe balance and the new balance
after the deduction should be shownto the user.
6. 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
0m
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.