1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Rom4ik [11]
4 years ago
13

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.
Computers and Technology
1 answer:
irakobra [83]4 years ago
4 0

Answer:

i really don't know

Explanation:

You might be interested in
Sara is writing a program to input her monthly phone bills and output the month name and amount for the month with maximum amoun
guajiro [1.7K]

Answer:

double [] phoneBills = new double[12];

Explanation:

Since the question has requested that an array be difined to hold phone bill for each month. Above declares an array that will hold floating point number (double) and it has been created to hold 12 values representing the months January to December

Values can be added in the array as shown in the program below.

<em>public class PhoneBill {</em>

<em>    public static void main(String[] args) {</em>

<em>    String []  MonthName = {"January", "February", "March", "April", "May", "June", "July", "August",</em>

<em>            "September", "October", "November", "December"};</em>

<em>    double [] phoneBills = new double[12];</em>

<em>        phoneBills[0] = 4.5;</em>

<em>        phoneBills[1] = 4.5;</em>

<em>        phoneBills[2] = 5.5;</em>

<em>        phoneBills[3] = 6.5;</em>

<em>        phoneBills[4] = 3.5;</em>

<em>        phoneBills[5] = 5.5;</em>

<em>        phoneBills[6] = 6.5;</em>

<em>        phoneBills[7] = 7.5;</em>

<em>        phoneBills[8] = 8.5;</em>

<em>        phoneBills[9] = 4.5;</em>

<em>        phoneBills[10] = 3.5;</em>

<em>        phoneBills[11] = 7.5;</em>

<em>        System.out.println("Months and corresponding phone bill");</em>

<em>        System.out.println(Arrays.toString(MonthName));</em>

<em>        System.out.println(Arrays.toString(phoneBills));</em>

<em>    }</em>

<em>}</em>

The output of this program is attached:

3 0
3 years ago
This short cut key combination deletes a line in most text documents.
Olegator [25]
CTRL P i believe.... lol
7 0
3 years ago
The physical parts or components of a computer system is called
liq [111]
The ConputergefvkdevkdegkedgkgxkgwxkzgkfzsjsfzjzsdjszfjwzfhwfwHkdKGWsqkgddaqhkdqakgQdgkQGgqzdgzkqdhqkfzqkhqczljaxhlcwzhlzchaxlhwxgkwdgkwdwkzgzmgzgkwdgmwzdgzwkdamxadmhfzahm
8 0
3 years ago
Read 2 more answers
After reading passage “the incredible machine” why do you think the article has been titled so?
Vitek1552 [10]
I haven’t read it, but just by the title it was probably talking about an incredible machine that was new to people.
7 0
3 years ago
Which of the following occurs during data cleansing?
Diano4ka-milaya [45]

Answer:c)Clean redundant customer data

Explanation:Data cleansing/cleaning is the activity for the elimination of the data which is not required for further use, corrupt, unnecessary etc by detecting it. The data that is being cleared is categorized by levels like irrelevant  data, incorrect data, inaccurate data, redundant data etc.

The data is eliminated by the method of correcting , modifying, reducing unnecessary parts,deleting, etc.Thus, the correct option is option(C).

5 0
4 years ago
Other questions:
  • How can I get more Gems in the game {Fashion Empire} through a Fire kindle?
    15·2 answers
  • Which hardware device should he consider upgrading in order to increase the system's storage space?
    6·1 answer
  • The atomic number of oxygen is 8. the atomic mass of oxygen is 16. him many neutrons does oxygen have
    12·1 answer
  • Public class Car {
    15·1 answer
  • Which of the following statements is correct? Group of answer choices An object of type Employee can call the setProjectName met
    11·1 answer
  • Daniel would like to send a letter to more than one hundred people. He should type each letter separately.
    12·1 answer
  • (Correct Answer Recieves Brainliest)
    8·2 answers
  • help i was building my pc and i pushed the cpu into the socket really hard until there was an audible crack and it went into the
    7·1 answer
  • Harry needs to make a presentation on packaging prototypes for a new product. Which presentation software elements can be use to
    9·1 answer
  • How can the absolute age of a rock be determined ?
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!