Question
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.
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.
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started