Question: in c + + please include design thank you and please D Question 1 O pts Develop a polymorphic banking program using an Account hierarchy
in c please include design thank you and please D Question O pts Develop a polymorphic banking program using an Account hierarchy of your choice. Create a vector of Account pointers to SavingsAccount and CheckingAccount objects. For each Account in the vector, allow the user to specify an amount of money to withdraw from the Account using member function debit and an amount of money to deposit into the Account using member function credit. As you process each Account, determine its type. If an Account is a Savings Account, calculate the amount of interest owed to the Account using member function calculateInterest, then add the interest to the account balance using member function credit. After processing an Account, print the updated account balance obtained by invoking baseclass member function getBalance. Design: Code: Output: Edit View Insert Format Tools Table pt Paragraph BIVA alo
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
