Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started