in python 3 Create a program that does the following: Use the createMenu 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

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter7: User-defined Simple Data Types, Namespaces, And The String Type
Section: Chapter Questions
Problem 7PE
icon
Related questions
Question

in python 3

Create a program that does the following:

  1. Use the createMenu 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 3 steps with 1 images

Blurred answer
Knowledge Booster
Graphical User Interface
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
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage