Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions