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
Readme [11.4K]
3 years ago
10

2.9.8 stop light codehs

Computers and Technology
1 answer:
skelet666 [1.2K]3 years ago
7 0

The program illustrates the use of conditional statements

Conditional statements are statements used to make comparison and decisions

<h3>How to write the program?</h3>

The program written in Python, where comments are used to explain each action is as follows:

#This gets input for the color

color = input("Color: ").lower()

#This checks if the input is red

if color == "red":

   print(“Red light: you should stop.”)

#This checks if the input is yellow

elif color == "yellow":

   print(“Yellow light: you should get ready.”)

#This checks if the input is green

elif color == "green":

   print(“Green light: you should go.”)

#This checks for invalid input

else:

   print(“Invalid")

Read more about Python programs at:

brainly.com/question/24833629

You might be interested in
Which method of traversing a tree would result in a sorted list for a binary search tree?
shutvik [7]

Answer:

The inorder traversal make a binary search tree sorted.

Explanation:

The algorithm of inorder traversal is

1.  Traverse the left subtree.

2.  print the data .

3. Traverse the right subtree

In this algorithm left subtree  is visited first then it print the data or visit the data and finally it visited Right subtree .

6 0
3 years ago
How is blockchain different from traditional database models?
Natasha2012 [34]

Answer:

The primary difference between a blockchain and a database is centralization. While all records secured on a database are centralized, each participant on a blockchain has a secured copy of all records and all changes so each user can view the provenance of the data.

5 0
2 years ago
As John develops the agenda, he wants to put the name of the appropriate person next to the agenda item. Whose name would he put
tresset_1 [31]

Answer:

d. His own

Explanation:

John is the JAD project leader

Joint Application Development (JAD) is a process that accelerates the design of information technology solutions. JAD uses customer involvement and group dynamics to accurately depict the user's view of the business need and to jointly develop a solution.

The executive sponsor is the person from the customer's organization who has the ultimate authority to make decisions about the project. The sponsor may be the customer's project leader, the CIO, or, in some cases, the CEO. The facilitator works with the sponsor to get the project started; it is essential, however, that the sponsor make key decisions, not the facilitator.

The executive sponsor has the following responsibilities:

. Accept ultimate authority and responsibility for the functional area to be addressed by the system.

· Resolve business policy conflicts by being the ultimate decision? maker.

· Honor the results of the JAD process.

· Set the vision for the project.

· Ensure the project team has access to and commitment from the right business user experts.

· Communicate customer support and cooperation.

6 0
3 years ago
Odbc works on the ____ operating system.
kvv77 [185]
The correct answer would be Windows.

4 0
4 years ago
why is there a need of properly interpreting teacher's/manufacturer's specifications before operating any food processing equipm
mash [69]

Answer:

Explanation:

This is a significant need because the teacher's/manufacturer's specifications are created so that the individual operating the equipment knows how to properly operate it. Failure to read and properly interpret these specifications can lead to the damaging of the equipment, damaging the food, contamination of the food, and even injury/death to the operator. That is why it is crucial that the information is read and interpreted correctly as well as implemented as instructed.

7 0
3 years ago
Other questions:
  • Can someone explain to me what coom means? kekw
    12·1 answer
  • A personal business letter is a letter that is ____.
    13·1 answer
  • How to show neither precious nor accurate
    13·1 answer
  • Which statement describes how to insert the IF, COUNTIF, or SUM function into a cell?
    10·1 answer
  • Type the correct answer in the box. Spell all words correctly.
    15·2 answers
  • How we can load program on the browser window.​
    7·2 answers
  • Plssssssssssssss help quick
    8·1 answer
  • Select all the correct answers.
    8·1 answer
  • Your computer science teacher asks you to sample a black and white image that is 4” x 6”. How would you sample the image to prov
    10·1 answer
  • Which of the following are parts of the natural environment? (Select the best four answers.)
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!