Problem

You have been developing a BankAccount class for Parkville Bank that contains several fiel...

You have been developing a BankAccount class for Parkville Bank that contains several fields and functions, including overloaded operators.

a. Remove the annual rate field and all references to it so that a BankAccount contains only an account number and a balance. Also remove the computeInterest()function if it is still part of your class.


b. Create a class named SavingsAccount that descends from BankAccount. Include an interest rate field that is initialized to 3 percent when a SavingsAccount is constructed. Create an overloaded insertion operator that displays all of the data for a SavingsAccount.


c. Create a class named CheckingAccount that descends from BankAccount. Include two new fields including a monthly fee and the number of checks allowed per month; both are entered from prompts within the constructor. Create an overloaded insertion operator that displays all the data for a CheckingAccount.


d. Write a main()function to demonstrate the SavingsAccount and CheckingAccount classes. Save the file as CheckingAndSavings.cpp.


e. Add a constructor for the SavingsAccount class that requires a double argument that is used to set the interest rate. Create a class named CheckingWithInterest that descends from both SavingsAccount and CheckingAccount. This class provides for special interest-bearing checking accounts. When you create a CheckingWithInterest object, force the interest rate to .02, but continue to prompt for values for all the other fields. Create an array of five CheckingWithInterest accounts, prompt the user for values for each, and display the accounts. Save the file as CheckingWithInterest.cpp.

Step-by-Step Solution

Request Professional Solution

Request Solution!

We need at least 10 more requests to produce the solution.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT