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, 21.06.2019 12:30
Which is the best web development company in pakistan?
Answers: 1
question
Computers and Technology, 23.06.2019 01:50
Write a program that uses a random number generator to generate a two digit positive integer and allows the user to perform one or more of the following operations: a. double the number. b. reverse the digits of the number. c. raise the number to the power of 2, 3, or 4. d. sum the digits of the number. e. if the number is a two-digit number, then raise the first digit to the power of the second digit. f. if the number is a three-digit number and the last digit is less than or equal to 4, then raise the first two digits to the power of the last digit. after performing an operation if the number is less than 10, add 10 to the number. also, after each operation determine if the number is prime. each successive operation should be performed on the number generated by the last operation. your program should not contain any global variables and each of these operations must be implemented by a separate function. also, your program should be menu driven. 7. (fraction calculator) write a program that
Answers: 1
question
Computers and Technology, 23.06.2019 12:00
If you embed a word table into powerpoint, what happens when you make edits to the embedded data? a. edits made to embedded data change the data in the source file; however, edits made to the source file will not be reflected in the embedded data. b. edits made to embedded data will change the data in the source file, and edits made to the source file will be reflected in the embedded data. c. edits made to embedded data don't change the data in the source file, nor will edits made to the source file be reflected in the embedded data. d. edits made to embedded data don't change the data in the source file; however, edits made to the source file will be reflected in the embedded data.
Answers: 1
question
Computers and Technology, 23.06.2019 18:30
List 3 items that were on kens resume that should have been excluded
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, 30.05.2020 20:04
question
Mathematics, 30.05.2020 20:04
Questions on the website: 13722363