Write python program that shows the following menu, and asks the user to enter one option,...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Write python program that shows the following menu, and asks the user to enter one option, every option will do specific task as following: (Use while loop) 1- Print odd numbers from 1 to 11 (use function that takes no parameters and returns a list of the odd numbers) (3 pts) 2- Prints all the numbers from 5 to 15 except 10 (3 pts) 3- Print the name of user 5 times using function. Hint: the name must entered by user. (3 pts) 4- Exit (1 pts) Write python program that shows the following menu, and asks the user to enter one option, every option will do specific task as following: (Use while loop) 1- Print odd numbers from 1 to 11 (use function that takes no parameters and returns a list of the odd numbers) (3 pts) 2- Prints all the numbers from 5 to 15 except 10 (3 pts) 3- Print the name of user 5 times using function. Hint: the name must entered by user. (3 pts) 4- Exit (1 pts)
Expert Answer:
Answer rating: 100% (QA)
python def printoddnumbers Prints odd numbers from 1 to 11 for num in range1 12 if num 2 0 printnum def printnumbersexcept10 Prints all the numbers from 5 to 15 except 10 for num in range5 16 if num 1... View the full answer
Related Book For
Posted Date:
Students also viewed these programming questions
-
can someone solve this Modern workstations typically have memory systems that incorporate two or three levels of caching. Explain why they are designed like this. [4 marks] In order to investigate...
-
do the following,..... Write program that reads a person's first and last names, separated by a space. Then the program outputs last name, comma, first name. Create program that takes in user input...
-
Tell whether the given side lengths form a right triangle. 8, 10, and 14
-
Consider the table below for the economy of a nation whose residents produce five final goods. Assuming a 2017 base year: a. What is nominal GDP for 2017and 2021? b. What is real GDP for 2017 and...
-
Consider a 10-year bond with a face value of $1000 that has a coupon rate of 5.5%, with semiannual payments. a. What is the coupon payment for this bond? b. Draw the cash flows for the bond on a...
-
If your instructor assigns a marketing plan for your class, we hope you will be excitedfor two reasons. First, you will get insights into trying to actually do marketing that often go beyond what you...
-
The income statement of Toby Zed Company is presented here. Additional information: 1. Accounts receivable increased $200,000 during the year, and inventory decreased $500,000. 2. Prepaid expenses...
-
On Wednesday, February 18, Jim Elsey, cost management specialist at Deere & Company in Moline, Illinois, received a call from Glen Lowery, sales manager in the Agricultural Products Division: Jim, I...
-
A committee in charge of promoting a Ladies Professional Golf Association tournament is trying to determine how best to advertise the event during the two weeks prior to the tournament. The committee...
-
If log3 32 = a log3 2, then log (a + 3) =? If log3 a = -2 and 2log, 8 = 6, then b a =?
-
You've observed the following returns on Crash-n-Burn Computer's stock over the past five years: 4 percent, -11 percent, 24 percent, 17 percent, and 13 percent. The average inflation rate over this...
-
Create a personal demographic and psychographic profile. Briefly assess any demographic, psychographic, and/or personal factors or characteristics that you believe are important in explaining your...
-
Conduct keyword research for your client. While conducting this research, name two competitors and decide on your keywords accordingly. Discuss your findings for your top five keywords and why you...
-
I have to fill in each column for a child with behaviour issues. He is unable to express his needs and tends to hit friends when he wants something. I need an example for each column. The child is...
-
Demand Forecasting By using the following data: Week Forecast Actual 1 150 160 2 155 162 3 160 158 4 158 160 5 ? Forecast demand for the next period by using: Weighted 4 weeks average with the...
-
Design a Comprehensive Learning and Development Leadership Program As the executive learning and development director for a midsized global petroleum organization, you have been asked by the chief...
-
What is your opinion of advertising awards, such as the Cannes Lions, that are based solely on creativity? If you were a marketer looking for an agency, would you take these creative awards into...
-
Use a rsum writer from the Internet to write your own rsum. Bring the rsum to class and have another student or your professor evaluate it.
-
Preston Jones, 51, had been an hourly worker in a machine shop of Armon Company for 21 years and four months. On a Christmas holiday, he suffered a severe heart attack and was hospitalized for three...
-
What can be done to promote safety in organizations?
-
Use the magnitudes (Richter scale) of the earthquakes listed in Data Set 16 in Appendix B. In 1989, the San Francisco Bay Area was struck with an earthquake that measured 7.0 on the Richter scale....
-
Based on data from Data Set 17 in Appendix B, the words spoken in a day by women have a mean of 16,215 words and a standard deviation of 7301 words. Consider the women with an unusual word count in a...
-
Measures of Location The values of P 50 , Q 2 , and the median are found for the net incomes reported on all individual 1040 tax forms filed last year. What do those values have in common?
Study smarter with the SolutionInn App