Question: Activity: Banking System ( 3 5 points ) Task # 1 ( 3 points ) Define one instance for each of stockItem, weightedItem and countableItem

Activity: Banking System (35 points)
Task #1(3 points)
Define one instance for each of stockItem, weightedItem and countableItem and include in the main
function.
Task #2(2 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 #3(10 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 $200). Class methods are balance inquiry,
withdraw, deposit, initializer, __str__ and the accessors and mutators.
Task #4(10 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 = balance*apr/1200
Task #5(10 points)
Write a derived class (CheckingAccount) that will include an additional data attribute: monthly
maintenance fee of $10 if the balance is less than $500, otherwise, maintenance fee is $2. 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 blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Accounting Questions!