Yoimiya K.

asked • 05/28/22

You are to create a Python application that applies concepts of inheritance in Python.

  1. Scenario: You are to create an application that simulates the functions of a Savings Account and Checking Account of a Bank. The user will be able to open the application, and then open their savings or checking account. The user can then make a payment with their checking account, or place a set amount of their savings account funds into an investment. Both accounts will allow the user to check their balance and make deposits.
  2. When the program is run, the application will first ask what account the user would like to open, of which there is two, the Checking Account and the Savings Account.
  3. The user starts with a balance of PHP 1,000.00 on BOTH accounts.
  4. The Checking Account will allow the user to do the following actions:
  5. Pay Bill: The application will ask the user to input the name of the company that the bill is for (e.g. PLDT), the service being paid for (e.g. Internet Service), and the amount to be paid. Once entered, the amount will be deducted from the checking account and the user will be given a receipt showing the name of the company, the service paid for, and the amount paid. The amount being paid for should not exceed the amount available in the account.
  6. Withdraw Money: The application will ask the user to input an amount to withdraw from their checking account. This should not exceed the amount that they currently have in their checking account. After withdrawing, the application should show the amount withdrawn and the remaining balance.
  7. The Savings Account will allow the user to do the following actions:
  8. Make Investment: The application will ask the user to input the name of the company that they would like to invest in, the return rate, as well as how much they would like to invest. The application will then deduct the amount from the savings account and then showcase a receipt with the name of the company, the return rate, and the amount invested. The amount being invested should not exceed the amount available in the account.
  9. Both Accounts can do the following actions:
  10. Check Balance: The application displays the current balance for that specific account.
  11. Deposit Money:The application will ask the user to input an amount to deposit to either account. After making a deposit, the user should be shown the amount deposited along with the new balance.
  12. Exit the Application/Go Back - Exits/stops the application if selected. While the application is running, it should allow the user to do as many transactions as they would like. The application will only end when the user ends it themselves. This option can also go back to the previous selection and allow the user to select a different account to conduct transactions on.
  13. The application should also give the option for the user to switch to the other account to make a transaction there instead. They should be allowed to make as many transactions as they would like before exiting the application themselves.
  14. The application must make use of inheritance in the source code. How you implement this is up to you, as long as you are applying the concepts of inheritance to achieve the requirements of the activity. 


1 Expert Answer

By:

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.