Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

using python class interest rate :0.65 Design a class called Account with the following methods: Constructor (tmpAcctNum, tmpBankName, tmpAcctType, and tmpBalance):void _str_0: str Description: prints

using python class image text in transcribed
interest rate :0.65
Design a class called Account with the following methods: Constructor (tmpAcctNum, tmpBankName, tmpAcctType, and tmpBalance):void _str_0: str Description: prints the information for the account one item per line. For example: Account #: 100 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, accountType, 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. OPTIONAL 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

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_2

Step: 3

blur-text-image_3

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

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2010 Barcelona Spain September 2010 Proceedings Part 2 Lnai 6322

Authors: Jose L. Balcazar ,Francesco Bonchi ,Aristides Gionis ,Michele Sebag

2010th Edition

364215882X, 978-3642158827

More Books

Students also viewed these Databases questions