Question: Consider the following Account class and main function: class Account: acct num-1880 #constructor for Account class (default values for balance #and annual interest rate are

 Consider the following Account class and main function: class Account: acct

num-1880 #constructor for Account class (default values for balance #and annual interest

rate are 188 and respectively). #INITIALIZER METHOD HEADER GOES HERE #MISSING CODE

def getId (self) return self. id def getBalance(self): #HISSING CODE def getAnnualInterestRate(self)

Consider the following Account class and main function: class Account: acct num-1880 #constructor for Account class (default values for balance #and annual interest rate are 188 and respectively). #INITIALIZER METHOD HEADER GOES HERE #MISSING CODE def getId (self) return self. id def getBalance(self): #HISSING CODE def getAnnualInterestRate(self) return self. annualInterestRate def setBalance (self, balance): self. balance-balance def setAnnualInterestRate(self,rate): #MISSING CODE def getMonthlyInterestRate (self): return self. annualInterestRate/12/18e def getMonthlyInterest (self): #MISSING CODE def withdraw(self, amount): #MISSING CODE def deposit(self, amount): #MISSING CODE def main): aAccount (5889,4.5) a.withdraw (588) a.deposit (1888) print( IDa.getIdO) print(Balance a.getBalance)) print("Monthly interest rate,a.getMonthlyInterestRate)) print("Monthly interest amt -",a.getMonthlyInterest)) print("Annual interest amt-"a.getAnnualInterestRate)) main)

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!