Bank Account Class
Write a Python class to model a bank account. Your BankAccount class should have the following design:
1. A BankAccount object has a balance.
2. A constructor to specify an initial balance.
3. A get method to view the current balance.
4. A set method to make a deposit.
5. A set method to withdraw an amount of money. Attempts to withdraw more than is available should be prevented.
6. A set method to accrue a month's worth of interest. Design this method to accept as a parameter the APR, the annual percent rate, used to pay interest.
Test your program by creating a program to do the following simulation. Turn in your Python script file and a screenshot. For full credit, you MUST use this data.
Test Case A:
Create a BankAccount object named checking with an initial balance of 255.00.
Deposit 800.00.
Withdraw 799.99.
Withdraw 72.89.
Withdraw 110.00.
Deposit 97.25.
Interest payment for the month, at 2.25% APR.
Show the current balance.
Test Case B:
Create a BankAccount object named savings with an initial balance of 0.
Deposit 255.23.
Withdraw 100.00.
Deposit 1001.15.
Withdraw 1500.00.
Interest payment for the month, at 3.1% APR.
Show the current balance.