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
never [62]
3 years ago
15

Write a code segment that prints the food item associated with selection. For example, if selection is 3, the code segment shoul

d print "pasta".
Write the code segment below. Your code segment should meet all specifications and conform to the example.
Computers and Technology
1 answer:
Ganezh [65]3 years ago
4 0

<em>Missing Part:</em>

<em>Assume that the following variables have been properly declared and initialized: an int variable named selection, where 1 represents "beef", 2 represents "chicken", 3 represents "pasta", and all other values represent "fish"</em>

Answer:

if selection == 1:

    print("beef")

elif selection == 2:

    print("chicken")

elif selection ==3:

    print("pasta")

else:

    print("fish")

Explanation:

I've completer the question and the questin will be answered in python.

   

This checks if selection is 1. If yes, it prints the beef

<em>if selection == 1:</em>

<em>     print("beef")</em>

This checks if selection is 2. If yes, it prints the chicken

<em>elif selection == 2:</em>

<em>     print("chicken")</em>

This checks if selection is 3. If yes, it prints the pasta

elif selection ==3:

    print("pasta")

Any other input is considered java/

else:

    print("fish")

You might be interested in
What network monitoring technology enables a switch to copy and forward traffic sent and received on multiple interfaces out ano
Afina-wow [57]

Answer: Port mirroring

Explanation: Port mirroring is the process through which the network packets are copied and transmitted port to port device as an input. It can carry the data in the form of network packets and then switch by coping the sending the data. This technique is implemented on the switches,computers and other networking devices for the monitoring and analysis process.

5 0
3 years ago
Lacking in movement, action, or change, especially in a way viewed as undesirable or uninteresting�
Elenna [48]

Answer:

Static

Explanation:

I just took the test man!

5 0
3 years ago
What is the use of html in websites
Alborosie
HTML is a very basic markup language and requires memorization of a few dozen HTML commands that structure the look and layout of a web page. Before writing <span>any HTML code or designing your first web page, you must decide on an HTML editor or text editor, such as Notepad or Word Pad.</span>
4 0
3 years ago
Read 2 more answers
The type of meter used to test downstream digital signal quality
Levart [38]
I would say digital modulated signals  <span />
3 0
4 years ago
The Hydrosphere contains (4 points)
cricket20 [7]
<span>exothermic reaction

hope it helepd</span>
5 0
4 years ago
Other questions:
  • When you see a blank pointer this means you can drag the row or column border to change height or width
    14·1 answer
  • Explain Hayflick limit and why are HeLa cells able to live beyond the Hayflick limit?
    14·1 answer
  • Which term describes a process by which malicious code can enter from a non-secure network, and make a hairpin, or sharp turn, a
    6·1 answer
  • Which of the following types of memory extends the actual physical memory of a computer by copying blocks of data from the memor
    11·1 answer
  • Consider the following code:
    13·1 answer
  • Which of the following is one of the tools in REPL.it that helps prevent syntax errors?
    10·1 answer
  • 50 PTS
    5·1 answer
  • What is command is used to improve the vocabulary and in which tab is it found​
    14·1 answer
  • Write this multiplacation statement as repeated addition 5/6 x 3​
    6·1 answer
  • Interactivity and Blank______ are two important capabilities of the Internet in the Blank______ relationship.
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!