assignment 10, Python Programming

Assignment Help:
#question.Program 10 Assignment
(Banking Objects – Savings/Checking Accounts)
Create a program named 10.py that performs the following:

Create a class named ChkAcct, and a class named SavAcct. Each class should have a “balance” property. Each class should also have a deposit method to add to the balance, and a withdraw method to subtract from the balance. Each class should also have a transfer method that calls the withdraw method in its own class, and invoke (call) the deposit method in the other class.

1. When you “open” an account by creating an instance of a class (an object), ask the user to input a beginning balance.

2. Have the user open a savings account and a checking account by entering a beginning balance for each account. Print the balance of each account.

3. Ask the user for an amount to deposit into the savings account, then add it to the balance for the savings account. Print the balance.

4. Ask the user for an amount to deposit into the checking account then add it to the balance for the checking account. Print the balance.

5. Ask the user for an amount to withdraw from the savings account then subtract that amount from the balance for the savings account. Print the balance.

6. Ask the user for an amount to withdraw from the checking account then subtract that amount from the balance for the checking account. Print the balance.

7. Ask the user to input the dollar amount to transfer from the checking account to the savings account. Print the balance of both the checking and savings accounts when the transaction is complete.

8. Ask the user to input the dollar amount to transfer from the savings account to the checking account. Print the balance of both the checking and savings accounts when the transaction is complete.



Related Discussions:- assignment 10

Programming embedded systems- interact with the environment, Interacting wi...

Interacting with the environment Computer systems have  to communicate with  the world around them,  getting information about  the external world, and  taking  actions  to cha

Common Vulnerabilities, 1 Low Level Exploits 1.1 Savegames Jimmy is becomi...

1 Low Level Exploits 1.1 Savegames Jimmy is becoming increasingly frustrated at the computer game hes playing. He has a save right before the levels boss but he needs either more

Programming embedded systems-programming models, Programming models Ju...

Programming models Just  as there  are several methods for organizing entire  software systems, there  are  different strategies for formally expressing computational processe

Python programming, Suppose the cover price of a book is $24.95, but bookst...

Suppose the cover price of a book is $24.95, but bookstores get a 40% discount. Shipping costs $3 for the first copy and 75 cents for each additional copy. What is the total whol

program that receives as input from the user, Write an algorithm for a pro...

Write an algorithm for a program that receives, as input from the user, 2 string variables and 2 integer variables; then joins together and displays the combined strings; and final

Packages and Libraries, For this assignment, you need to create a program t...

For this assignment, you need to create a program that allows the user to do basic trigonometry functions. First, ask the user if he or she would like to do sine, cosine, or tangen

Python program, Write a program that asks the user to enter a number of sec...

Write a program that asks the user to enter a number of seconds. The responses of the program will vary depending on the length of seconds: • If the number of seconds is under 60

Top-down approach, what are the issues assciated with top-down analysis

what are the issues assciated with top-down analysis

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd