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
dybincka [34]
3 years ago
9

What is something that a robot or computer program might do that requires a decision, or conditional statement?

Engineering
1 answer:
Veseljchak [2.6K]3 years ago
8 0

Answer:

Make decisions such as greeting a user depending on the time of day. Example: saying good morning while it is morning but saying good afternoon to the user only when it is the appropriate time.

Explanation:

I have used decision making methods in various programs to greet users, and determine whether to do one thing or another based on values passed to the program

If you have any questions feel free to ask me and I will do my best to help and explain! :)

You might be interested in
Write the following decorators and apply them to a single function (applying multiple decorators to a single function): 1. The f
natita [175]

Answer:

Complete question is:

write the following decorators and apply them to a single function (applying multiple decorators to a single function):

1. The first decorator is called strong and has an inner function called wrapper. The purpose of this decorator is to add the html tags of <strong> and </strong> to the argument of the decorator. The return value of the wrapper should look like: return “<strong>” + func() + “</strong>”

2. The decorator will return the wrapper per usual.

3. The second decorator is called emphasis and has an inner function called wrapper. The purpose of this decorator is to add the html tags of <em> and </em> to the argument of the decorator similar to step 1. The return value of the wrapper should look like: return “<em>” + func() + “</em>.

4. Use the greetings() function in problem 1 as the decorated function that simply prints “Hello”.

5. Apply both decorators (by @ operator to greetings()).

6. Invoke the greetings() function and capture the result.

Code :

def strong_decorator(func):

def func_wrapper(name):

return "<strong>{0}</strong>".format(func(name))

return func_wrapper

def em_decorator(func):

def func_wrapper(name):

return "<em>{0}</em>".format(func(name))

return func_wrapper

@strong_decorator

@em_decorator

def Greetings(name):

return "{0}".format(name)

print(Greetings("Hello"))

Explanation:

5 0
4 years ago
Aaron needs to create a building design for a restaurant with colors that depict excitement and vibrancy. Which color can Aaron
zloy xaker [14]

Answer:

I'm no engineer, but blue and purple are cool colors and white is every color so I'd go with orange

7 0
3 years ago
Read 2 more answers
Which of the following answer options are your employer's responsibility?
tino4ka555 [31]

Answer:

Develop a written hazard communication program

Implement a hazard communication program

Maintain a written hazard communication program

Explanation:

To find - Which of the following answer options are your employer's responsibility?  Select all that apply.

Develop a written hazard communication program

Implement a hazard communication program

Maintain a written hazard communication program

Solution -

The correct options are -

Develop a written hazard communication program

Implement a hazard communication program

Maintain a written hazard communication program

All are the Responsibilities of an employer

Reason -

The most important duty of the employer is to stay alert and implement a correctly and efficiently written communication program related to hazards of the substances in the workplace.

He also has to maintain the program so that employees do not get affected.

3 0
3 years ago
What is electricity defined as
antoniya [11.8K]

Answer:

Exact answer: a form of energy resulting from the existence of charged particles (such as electrons or protons), either statically as an accumulation of charge or dynamically as a current.

4 0
3 years ago
A converging nozzle has an exit area of 0.001 m2. Air enters the nozzle with negligible velocity at a pressure of 1 MPa and a te
Artyom0805 [142]

Explanation:

a converging nozzle has an exit area of 0.001 m2. Air enters the nozzle with negligible velocity at a pressure of 1 MPa and a temperature of 360 K. For isentropic flow of an ideal gas with k = 1.4 and the gas constant R = Ru/MW = 287 J/kg-K, determine the mass flow rate in kg/s and the exit Mach number for back pressures

100% (3 ratings)

A_2 = 0.001 m^2 P_1 = 1 MPa, T_1 = 360 k P_2 = 500 kpa p^gamma - 1/gamma proportional T (1000/500)^1.4 - 1/1.4 = (360/T_2) 2^4/14 = 360/T_2 T_2

3 0
3 years ago
Other questions:
  • Thermoplastics burn upon heating. a)-True b)- false?
    14·1 answer
  • Early American rockets used an RC circuit to set the time for the rocket to begin re-entry after launch (true story). Assume the
    5·1 answer
  • Give an example of one technology that is well matched to the needs of the environment, and one technology that is not.
    9·1 answer
  • What must you do if hauling a load of material which could fall or blow onto the roadway?
    14·1 answer
  • "Mass burn technology uses unprocessed municipal solid waste to generate heat which is used to produce electricity."
    9·2 answers
  • The electron beam in a TV picture tube carries 1015 electrons per second. As a design engineer, determine the voltage needed to
    8·1 answer
  • Solar energy stored in large bodies of water, called solar ponds, is being used to generate electricity. If such a solar power p
    15·1 answer
  • Are there engineering students here?​
    5·2 answers
  • An HVAC contracting company sent out three work crews to complete three
    10·1 answer
  • Technician A says that fuel filler caps with pressure and vacuum vents are used with EVAP system fuel tanks. Technician B says t
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!