subject
Computers and Technology, 20.08.2020 01:01 mrus

Phase 1 RequirementsCode submitted for Phase 1 will only have the following capability. Any additional coding will result in the loss of point. code will have the main function, including looping until the user enters input of 12code will call the printMenu() functiontheprintMenu() function will have the capability to print the menu and receive input. AT THIS TIME do not worry about implementing the try/except codecode will return the integer value (remember - the input() function returns a string) entered by the user to the main function. code will have a simple print statement outputting the statement "The user input the value ??" - where the ?? will be replaced by the value the user entered. Select from the following options: 1) Category 2) Item 3) Serving Size 4) Calories 5) Calories from Fat 6) Total Fat 7) CholePhase 2 Requirementscode will meet all requirements from Phase 1code in the printMenu() function will be added to include a try/except to catch errors if the user enters a non-numeric value in response to the menu prompt. code will have the main function calling the processInput() function that accepts a single argumentthe argument to the function will be the value returned from the printMenu() functionuse a different variable name in your main code and in your functioncreate a list named headings[]the headings list should contain all the Headings from the menu except 'Quit'...so you have all 11 elements in the list from your menu. using the value that is passed into the processInput() function print not only the numerical value of that argument - but also print the proper item from the headings[] list. Phase 3 Requirementscode will meet all requirements from Phase 2code to read the input file will be added to the main functionthe processInput() function will sort the data read from the filethe processInput() function will print out the top 5 items based on the input valueI need help with these 3 phases. If possible separate them. If I wanted to use only phase 1 in my python program, it will work. If I wanted to use both phase 1 and 2 it'll still work. I need to turn in phase 1 first then a few days, phase 2 with the new code and phase 1 code and then finally phase 3 with the all phases combined.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 04:00
Which of the following kinds of programs displays an online advertisement in a banner or pop-up window on webpages, email, or other internet service? e
Answers: 2
question
Computers and Technology, 22.06.2019 23:30
What is the digital revolution and how did it change society? what are the benefits of digital media?
Answers: 1
question
Computers and Technology, 23.06.2019 13:30
Stops: using the information learned in this course, explain three things you will not do when driving. a. b. c. explain why you will not do these things when driving. starts: using the information learned in this course, explain three things you will do when driving. a. b. c. explain why you will do these particular things when driving. explain one thing you will stop doing as a passenger. explain one thing you will start doing as a passenger.
Answers: 3
question
Computers and Technology, 23.06.2019 20:30
What are some settings you can control when formatting columns?
Answers: 1
You know the right answer?
Phase 1 RequirementsCode submitted for Phase 1 will only have the following capability. Any addition...
Questions
question
Mathematics, 24.02.2021 18:10
question
Mathematics, 24.02.2021 18:10
question
Mathematics, 24.02.2021 18:10
question
Mathematics, 24.02.2021 18:10
question
Mathematics, 24.02.2021 18:10
Questions on the website: 13722367