Question: Question 1 Background Consider the code below for a new class of objects caled account that has the attributes described in the doctrings below. a

 Question 1 Background Consider the code below for a new class

Question 1 Background Consider the code below for a new class of objects caled account that has the attributes described in the doctrings below. a string. In [1. class Account "A bank out that has & non negative balance. definit (self, account_holder): Every Account described using the name of the account holder, which self balance selt. holder account holder def deposit (self, amount) Thereas the count balance by amount and return the new balance. selt. balance - Bolt balance amount returself. balance def withdraw(self, amount) Decrease the account balance by amount and return the new balance 10 amount > self.balance returneut eient funds self.balance - self.balance - Anount return selt.balance Question 1 (5 points) N B. This question is worth 5 points Using the class account above, write a new subclass hiAccount note 'Hi' stands for high Interest that allows you to earn interest at the rate of 01 percent per second. Write a new method called checkBalance for HiAccount that computes HiAccount's value, accounting for the growth of your hiAccount between when the time when the deposit was made and when you invoke checkBalance You might want to familiarize yourself with the time module by reading the time documentation Answer the question How much does an investment of 500 dollars grow aner 30 seconds? in 111 TOOR CODE MERE raise Not implementedError()

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 Databases Questions!