How to create a starting menu in python

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

How to create a starting menu in python

1 / 5
| + %9L
The Starting Menu
When the Python code runs, the first thing Mr. Nook would like to see is a menu allowing him to input
which option he would like to continue with. For example, a print statement may occur followed by an
entry for A, B, or C. Then, the program will continue depending on the user input. Below you can see
an example screenshot of what yours may look like. (Switch out (YOURNAME} with your name.)
Welcome to the Tom Nook's store management program
2020 (YOURNAME) for Nook Industries
Select one of the following options:
[A]: Income Tax Calculator
[B):Create an Employee Account
[C]: End this Program
Please type in A, B, or C: |
You have the freedom to design your code and options in a way that makes the most sense to you, but
your menu should be sure to include the following:
o A clear print statement(s) that tells the user what options they have and what they should type
o An input that grabs the user's response and makes any necessary data type conversions
o A way of evaluating their answer and continuing to the desired section (think Boolean
statements)
o A way of detecting when their answer is not an option and giving an appropriate response to re-
run the program
o This section will likely require the following concepts we learned in class:
1. User input
2. Boolean (True/False) logic
3. print statements and concatenations
Income Tax Calculator
ツ
Transcribed Image Text:1 / 5 | + %9L The Starting Menu When the Python code runs, the first thing Mr. Nook would like to see is a menu allowing him to input which option he would like to continue with. For example, a print statement may occur followed by an entry for A, B, or C. Then, the program will continue depending on the user input. Below you can see an example screenshot of what yours may look like. (Switch out (YOURNAME} with your name.) Welcome to the Tom Nook's store management program 2020 (YOURNAME) for Nook Industries Select one of the following options: [A]: Income Tax Calculator [B):Create an Employee Account [C]: End this Program Please type in A, B, or C: | You have the freedom to design your code and options in a way that makes the most sense to you, but your menu should be sure to include the following: o A clear print statement(s) that tells the user what options they have and what they should type o An input that grabs the user's response and makes any necessary data type conversions o A way of evaluating their answer and continuing to the desired section (think Boolean statements) o A way of detecting when their answer is not an option and giving an appropriate response to re- run the program o This section will likely require the following concepts we learned in class: 1. User input 2. Boolean (True/False) logic 3. print statements and concatenations Income Tax Calculator ツ
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY