Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a banking program in Python. The program should use the inheritance diagram in order to create a parent class and two child classes. The

Create a banking program in Python.

The program should use the inheritance diagram in order to create a parent class and two child classes.

image text in transcribed

The program will create an object of each type (CheckingAccount and SavingsAccount).

The program will use the following data:

o Balance: $400, $50

o Fees: $10

o Minimum Balance: $100

o Interest Rate: 4% Run the program twice.

Once with the account balance of $400 and the other with the account balance of $50.

The second run of the program will have a balance lower than the minimum balance. Return an output message output advising the user that their account is below the minimum balance.

Incorporate the good coding practices you have learned up to this point in the course such as Try/Except Blocks, allow the user to continue to run the program, and to exit the program, formatting methods, etc.

The only info a user will need to input is the bank account number and account balance. Will need a menu where you can make selections and have the correct information returned.

BankAccount Attributes -account Number -balance Functions -withdrawlo deposit() getBalance() CheckingAccount SavingsAccount Attributes interestRate Attributes -fees minimum balance Functions -addinterest Functions -deductFees -check MinimumBalance()

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

Data Management Databases And Organizations

Authors: Richard T. Watson

3rd Edition

0471418455, 978-0471418450

More Books

Students also viewed these Databases questions