Question: C++ Implement a class Account. An account has a balance, functions to add and withdraw money, and a function to query the current balance. Charge

C++

Implement a class Account. An account has a balance, functions to add and withdraw money, and a function to query the current balance. Charge $20 penalty if an attempt is made to withdraw more money than available in the account. Enhance the Account class to compute the interest on the current balance. An account has initial balance of $10,000.00, and 6% percent annual interest is compounded monthly until the investement is double. Write a main function to determine the number of months to double the initial investment. Create a menu to allow the user to enter the initial investement and the annual interest rate.

Implement a class Bank. This bank has two objects, checking and savings of type Account that was developed above. Implement four member functions:

deposit(double amount, string account) withdraw(double amount, string account) transfer(double amount, string account) print_balance() Here is the account string is "S" or " C". For the deposit or withdrawl, it indicates which account is affected. For a transfer it indicates the account from which the money the money is taken; the money is automatically transfer to the other account.

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!