Create a python program that does the following:       Set the starting balance for the checking account to 0,      Set the starting balance for the savings account to 100   Use the main function to make 3 menus: Main Menu should contain choices for Savings, Checking, Quit Savings Menu should contain choices for Display Interest Earned, Display Savings Balance, Back to Main Checking Menu should contain choices for Deposit, Withdrawal, Display Checking Balance, Back to Main Call the getValidChoice function to obtain the user’s selection Continue until the user selects the option to Quit Act upon the user’s choice as shown: From the main menu: if the choice is 1 (Savings), display the Savings menu and call the getValidChoice function with the savingsMenuString and a title if the choice is 2 (Checking), display the Checking menu and call the getValidChoice function with the checkingMenuString and a title if the choice is 3 (Quit), end the program. From the Savings menu, depending on the users choice: choice 1 (Display Interest Earned) call a showInterestEarned function that adds interest to the savingsBalance – 2% of the balance. choice 2 (Display Savings Balance) – call a showSavingsBalance function that displays the savingsBalance. Choice 3: exits the savingsMenu  Upon returning to the main menu, the main menu will be displayed. From the Checking menu: Choice 1: Deposit: ask user for amt to deposit and update the checkingBalance Choice 2: Withdrawal: ask the user for amt to withdraw, and make sure there is enough money in the account, updating the balance on the account. NOTE: do NOT allow overdrafts, but rather print a message that the withdrawal isn’t possible – overdrafts not allowed. Choice 3: Display the balance in the account Choice 4:  exits the checkingMenu.  Upon returning to the main menu, the main menu will be displayed.

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
icon
Related questions
icon
Concept explainers
Question

Create a python program that does the following:

      Set the starting balance for the checking account to 0,

     Set the starting balance for the savings account to 100

 

  1. Use the main function to make 3 menus:
    • Main Menu should contain choices for Savings, Checking, Quit
    • Savings Menu should contain choices for
      Display Interest Earned, Display Savings Balance, Back to Main
    • Checking Menu should contain choices for
      Deposit, Withdrawal, Display Checking Balance, Back to Main

  2. Call the getValidChoice function to obtain the user’s selection
  3. Continue until the user selects the option to Quit
  4. Act upon the user’s choice as shown:
    • From the main menu:
      • if the choice is 1 (Savings), display the Savings menu and call the getValidChoice function with the savingsMenuString and a title
      • if the choice is 2 (Checking), display the Checking menu and call the getValidChoice function with the checkingMenuString and a title
      • if the choice is 3 (Quit), end the program.
    • From the Savings menu, depending on the users choice:
      • choice 1 (Display Interest Earned) call a showInterestEarned function that adds interest to the savingsBalance – 2% of the balance.
      • choice 2 (Display Savings Balance) – call a showSavingsBalance function that displays the savingsBalance.
      • Choice 3: exits the savingsMenu  Upon returning to the main menu, the main menu will be displayed.
    • From the Checking menu:
      • Choice 1: Deposit: ask user for amt to deposit and update the checkingBalance
      • Choice 2: Withdrawal: ask the user for amt to withdraw, and make sure there is enough money in the account, updating the balance on the account.
        NOTE: do NOT allow overdrafts, but rather print a message that the withdrawal isn’t possible – overdrafts not allowed.
      • Choice 3: Display the balance in the account
      • Choice 4:  exits the checkingMenu.  Upon returning to the main menu, the main menu will be displayed.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Operators
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.
Similar questions
Recommended textbooks for you
Database System Concepts
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)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education