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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 22:00, lgary9462
Perform the following tasks: a. create a class named testclass that holds a single private integer field and a public constructor. the only statement in the constructor is one that displays the message “constructing”. write a main()function that instantiates one object of the testclass. save the file as testclass. cpp in the chapter 08 folder. run the program and observe the results. b. write another main()function that instantiates an array of 10 testclass objects. save the file as test class array. c . run this program and observe the results.
Answers: 1
image
Computers and Technology, 23.06.2019 02:50, bfell92
There’s only one game mode that stars with the letter ‘e’ in cs: go. which of the options below is it?
Answers: 1
image
Computers and Technology, 23.06.2019 18:20, Blossom824
What is wi-fi infrastructure? a metropolitan area network that uses radio signals to transmit and receive data a communications technology aimed at providing high-speed wireless data over metropolitan area networks a means by which portable devices can connect wirelessly to a local area network, using access points that send and receive data via radio waves includes the inner workings of a wi-fi service or utility, including the signal transmitters, towers, or poles and additional equipment required to send out a wi-fi signal
Answers: 2
image
Computers and Technology, 24.06.2019 20:20, isaiahromero15
Write python code that prompts the user to enter his or her favorite color and assigns the user’s input to a variable named color.
Answers: 1
You know the right answer?
Phase 1 RequirementsCode submitted for Phase 1 will only have the following capability. Any addition...

Questions in other subjects:

Konu
Mathematics, 10.02.2021 04:00
Konu
Advanced Placement (AP), 10.02.2021 04:00