Question: using python Three Designs for an Account class Design a class called Account with the following methods: +Constructor (tmpAcctNum, tmpBankName, tmpAcctType, and tmpBalance):void _str_(): str

using python

Three Designs for an Account class Design a class called Account with the following methods: +Constructor (tmpAcctNum, tmpBankName, tmpAcctType, and tmpBalance):void _str_(): str Description: prints the information for the account one item per line. For example: Account #: 100 Bank: NorWest Account Type: Checking Balance: $150.98 computeInterest():float-should update the balance AND return the amount of interest. getters/setters for each of these: accountNum, bankName, account Type, balance Version 1 of the Account class: private data is a list that stores the account number, bank name, account type, and balance. Version2 of the Account class: private data is stored as separate variables. Version 3 of the Account class: private data is stored as a tuple that stores the account number, bank name, account type, and balance. Create a test program that works with all versions of the Account class, regardless of the way the private data was stored in the class. Suggestion: Create 3 modules for the 3 different versions of the Account class. Be sure that the class itself is always called Account in each of the modules-only the module name should change. Your testing should provide the SAME code for all 3 versions, except that you'll use a different import statement for each

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!