
Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN: 9780133594140
Author: James Kurose, Keith Ross
Publisher: PEARSON
expand_more
expand_more
format_list_bulleted
Question
thumb_up100%
Please assist to create menu function by using input() in Python.
the output is like attached image.
if input entered 1 the program keeps going for next question,
but if entered option 2 the program should return none.
the program I wrote below is only for input option "1"
but if entered option 2, I don't know how to stop the program.
Thanks.
-------------------------------------------------------------------
print('-'*75,'Student Report Menu Options','-'*75,\
'1. Report grade for a student','2. Quit',sep='\n')
x = input()
print('Please enter the student number: ')
y = input()

Transcribed Image Text:Student Report Menu Options
1. Report grade for a student
2. Quit
1
Please enter the student number:
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by stepSolved in 2 steps with 1 images

Knowledge Booster
Similar questions
- Hi, I need to solve this problem with C++ programming language using Visual Studio. Thank you.arrow_forwardYou have been hired by DaveCo to be a Programmer. You first job is to develop a flowchart for anew program DaveCo wants to design.You will need to use word processing program such as Word to complete the assignment.Create a flowchart that inputs a name, then prints it out. Once you have completed the flowchart save it using the file name: Lab 1.0arrow_forwardPlease study / review chapters 03 and 06 before you attempt to do this project. Design two pseudocode programs or two flowcharts for a main( ) application and a function called maximum( ). The maximum function simply finds the maximum of three integers and returns one value back to the caller (in this case returns the result to the main application). The main( ) program prompts the user three times for three integers one by one and then passes these values to the function for further processing. The main program finally receives the result and displays the maximum of these three integers. Note: If you decide to do this project using flowchart, you may use the draw.io web-site and draw your two flowcharts. To do this project using pseudocode you just need a simple text editor to create two text files.(Several Java application and functions were designed and demonstrated in class that find the sum, minimum and maximum of different values)arrow_forward
- Create a JavaFX application with at least six labels that contain facts about your favorite topic—for example, the French Revolution or astronomy. Every time the user clicks a Button, remove one of the Labels and add a different one.arrow_forwardPlease, - Complete the program - Draw a flowchart for the programarrow_forward- Please do a simple Python code and correct Flowchart with the correct Loop and shapes. 1. Begin the roulette game by printing “Welcome to the roulette table!”. 2. Prompt the player to enter the bet they would like to make. 3. Check if the bet is valid by comparing it to the list of possible bets. 4. If the bet is not valid, prompt the player to enter another bet. 5. Prompt the player to enter the amount they would like to bet. 6. Check if the amount is valid by checking if it is a digit. 7. If the amount is not valid, prompt the player to enter another amount. 8. Generate a random number between 0 and 36. 9. Use the random number to determine the color of the wheel. 10. Check if the player won by comparing their bet to the outcome. 11. If the player won, calculate the payout and inform the player. 12. If the player lost, inform the player that they lost the amount they bet. - Please do a simple…arrow_forward
arrow_back_ios
arrow_forward_ios
Recommended textbooks for you
- Computer Networking: A Top-Down Approach (7th Edi...Computer EngineeringISBN:9780133594140Author:James Kurose, Keith RossPublisher:PEARSONComputer Organization and Design MIPS Edition, Fi...Computer EngineeringISBN:9780124077263Author:David A. Patterson, John L. HennessyPublisher:Elsevier ScienceNetwork+ Guide to Networks (MindTap Course List)Computer EngineeringISBN:9781337569330Author:Jill West, Tamara Dean, Jean AndrewsPublisher:Cengage Learning
- Concepts of Database ManagementComputer EngineeringISBN:9781337093422Author:Joy L. Starks, Philip J. Pratt, Mary Z. LastPublisher:Cengage LearningPrelude to ProgrammingComputer EngineeringISBN:9780133750423Author:VENIT, StewartPublisher:Pearson EducationSc Business Data Communications and Networking, T...Computer EngineeringISBN:9781119368830Author:FITZGERALDPublisher:WILEY

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 Engineering
ISBN:9780124077263
Author:David A. Patterson, John L. Hennessy
Publisher:Elsevier Science

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
Computer Engineering
ISBN:9781337093422
Author:Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:Cengage Learning

Prelude to Programming
Computer Engineering
ISBN:9780133750423
Author:VENIT, Stewart
Publisher:Pearson Education

Sc Business Data Communications and Networking, T...
Computer Engineering
ISBN:9781119368830
Author:FITZGERALD
Publisher:WILEY