Question: Activity: Banking System ( 3 5 points ) Task # 1 ( 3 points ) Define one instance for each of stockItem, weightedItem and countableItem
Activity: Banking System points
Task # points
Define one instance for each of stockItem, weightedItem and countableItem and include in the main
function.
Task # points
The derived class does not have direct access to the private data attributes of the superclass. Explain
why we must use the accessor method in stockItem to obtain the price in the calculation of the value.
Include your explanation in the script file.
Task # points
Write class BankAccount that will represent the general bank account object. The data attributes are
name, account balance minimum to open an account is $ Class methods are balance inquiry,
withdraw, deposit, initializer, str and the accessors and mutators.
Task # points
Write a derived class InterestEarningAccount that will include an additional data attribute: annual
percentage rate apr Provide new accessor and mutator and str methods and a method to
calculate and add to balance, the interest each month. Use interest balanceapr
Task # points
Write a derived class CheckingAccount that will include an additional data attribute: monthly
maintenance fee of $ if the balance is less than $ otherwise, maintenance fee is $ Include a
method that will remove maintenance fee from balance each month. Note the maintenance must be
deducted from the balance.
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
