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
16. The Nintendo Entertainment System (NES) saw its sales skyrocket as a result of the launch of which of the following games?
seropon [69]

Answer:

Super Mario bros

Explanation:

4 0
3 years ago
Which is an example of a demand account
scoundrel [369]

Answer:  savings account investment account credit account checking account Checking account is an example of a demand account.

6 0
3 years ago
Mauricio plans on retiring in 20 years, and he wants to double his money by that time. He has contacted various banks, looking f
Novosadov [1.4K]

The rule of 72 is a very simple way to estimate and determine the number of years required to double your investments given a fixed annual rate of interest. It can also estimate and then calculate the annual interest rate required to double an investment in a given number of years. In the rule of 72, you can either choose to calculate the annual interest rate or the number of years.  

Use this formula to calculate the rule of 72

Rule of 72  ≈ 72 ÷ interest rate ≈ number of years to double

7 0
3 years ago
Describe at least three virus scanning techniques
Natasha_Volkova [10]

Answer:

 Virus scanning technique is the process to scan the software and identify the various viruses in the computing device. The basic aim of virus scanning technique is to provide the information security and review virus in the given program.

The three virus scanning techniques are as follow:

Behavior detection: This type of detection observe the execution of the program and helps in modifying the host file in the system.

Signature based detection: This type of detection uses various type of key aspects for examine the file for creating the fingerprint. It basically represent the byte stream in the file.

Heuristics detection: The basic aim is to detect or examine the files and it is basically designed to improve the security system. It is also known as heur.

4 0
3 years ago
Match the components of a blog to their descriptions.
motikmotik

Answer:

Explanation:

1. entry title - name of the posting

2. permalink - place where a blog posting is located

3. entry date - when the posting became available

4. comment - allows users to add to the conversation

3 0
3 years ago
Other questions:
  • Design an application for Bob's E-Z Loans. The application accepts a client's loan amount and monthly payment amount. Output the
    8·1 answer
  • A(n) ____ is a primary key that consists of a column that uniquely identifies an entity, such as a person's social security numb
    14·1 answer
  • ​What file system below does not support encryption, file based compression, and disk quotas, but does support extremely large v
    10·1 answer
  • HELP PLEASE NOW ASAP BRAINLIEST
    13·2 answers
  • Why you think Operating System is pivotal in teaching and learning.
    13·1 answer
  • When computing the cost of the basket of goods and services purchased by a typical consumer, which of the following changes from
    11·1 answer
  • Take the template and complete creation and ordering of the Triangular Matrix. //Complete the following Functions int**fillAry(i
    7·1 answer
  • What limited the possibilities of game development from a technical viewpoint?
    7·1 answer
  • Lesson 2.7 Code Practice #2
    13·1 answer
  • What function would you use to calculate the total interest paid for the first year of a mortgage?.
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!