You have been developing a BankAccount class for Parkville Bank that contains several fields and functions.
a. Create BankAccount contains only an account number and a balance.
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
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.
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.
using namespace std;
class SavingsAccount: public BankAccount
class CheckingAccount: public BankAccount
class CheckingWithInterest: public SavingsAccount, public CheckingAccount
Am i doing this correct?