You are to create a Python application that applies concepts of inheritance in Python. 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. 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. The user starts with a balance of PHP 1,000.00 on BOTH accounts. The Checking Account will allow the user to do the following actions: 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. 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. The Savings Account will allow the user to do the following actions: 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. Both Accounts can do the following actions: Check Balance: The application displays the current balance for that specific account. 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. 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. 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. The application must make use of inheritance in the source code.
You are to create a Python application that applies concepts of inheritance in Python. 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. 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. The user starts with a balance of PHP 1,000.00 on BOTH accounts. The Checking Account will allow the user to do the following actions: 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. 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. The Savings Account will allow the user to do the following actions: 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. Both Accounts can do the following actions: Check Balance: The application displays the current balance for that specific account. 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. 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. 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. The application must make use of inheritance in the source code.
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
You are to create a Python application that applies concepts of inheritance in Python.
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.
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.
The user starts with a balance of PHP 1,000.00 on BOTH accounts.
The Checking Account will allow the user to do the following actions:
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.
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.
The Savings Account will allow the user to do the following actions:
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.
Both Accounts can do the following actions:
Check Balance: The application displays the current balance for that specific account.
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.
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.
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.
The application must make use of inheritance in the source code.
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 4 steps with 4 images
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education