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
Nikolay [14]
3 years ago
6

Write multiple if statements: If carYear is before 1967, print "Probably has few safety features." (without quotes). If after 19

70, print "Probably has head rests.". If after 1991, print "Probably has electronic stability control.". If after 2002, print "Probably has airbags.". End each phrase with period and newline. Ex: carYear = 1995 prints:
Engineering
1 answer:
Free_Kalibri [48]3 years ago
5 0

Answer:

The solution code is written in Python 3.

  1. carYear = 1995
  2. if(carYear < 1967):
  3.    print("Probably has few safety features.\n")
  4. if(carYear > 1970):
  5.    print("Probably has head rests. \n")
  6. if(carYear > 1991):
  7.    print("Probably has electronic stability control.\n")
  8. if(carYear > 2002):
  9.    print("Probably has airbags. \n")

Explanation:

Firstly, create a variable, <em>carYear</em> to hold the value of year of the car make. (Line 1)

Next, create multiple if statements as required by the question (Line 3-13). The operator "<" denotes "smaller" and therefore <em>carYear < 1967</em> means any year before 1967. On another hand, the operator ">" denotes "bigger" and therefore <em>carYear > 1970 </em>means any year after 1970.

The print statement in each of the if statements is done using the Python built-in function <em>print()</em>. The "\n" is an escape sequence that create a new line at the end of each printed phrase.

You might be interested in
he following is true for a Function Generator (select all that apply): Select one or more: a. It produces a variety of patterns
Amanda [17]

Answer:

A,C and E

Explanation:

It should be understood that a function generator can be explained as a piece of electronic test equipment or software which is used in generating different types of electrical waveforms over a wide range of frequencies. It should be noted that some of the examples of waveforms produced by the function generator are the sine wave, square wave, triangular wave and sawtooth shapes.

Therefore, the reason why of picking the options as highlighted above.

4 0
4 years ago
If the dry-bulb temperature is 95°F and the wet-bulb temperature is also 78°F, what is the relative humid- ity? What is the dew
Sidana [21]

Answer:

Relative humidity 48%.

Dew point 74°F

humidity ratio 118 g of moisture/pound of dry air

enthalpy 41,8 BTU per pound of dry air

Explanation:

You can get this information from a Psychrometric chart for water, like the one attached.

You enter the chart with dry-bulb and wet-bulb temperatures (red point in the attachment) and following the relative humidity curves you get approximately 48%.

To get the dew point you need to follow the horizontal lines to the left scale (marked with blue): 74°F

for the humidity ratio you need to follow the horizontal lines but to the rigth scale (marked with green): 118 g of moisture/pound of dry air

For enthalpy follow the diagonal lines to the far left scale (marked with yellow): 41,8 BTU per pound of dry air

5 0
3 years ago
What is a thermal reservoir?
Mekhanik [1.2K]

Answer:

Explanation:

Thermal reservoir:

   It is the body which have infinite amount of heat capacity and store large amount of heat.The temperature of thermal reservoir is constant and does not change with time.The temperature of thermal reservoir is not change even heat is going out from reservoir or heat going inside the reservoir.The temperature of thermal reservoir remains constant and does not depend on the surroundings.

7 0
3 years ago
How nany degrées is the included angle of General Purpose Acme threads? A. 60 B. 29 c. 14.5 D. 10
horrorfan [7]

Answer:

B.29

Explanation:

In general purpose acme thread:

  Nominal depth of thread=0.5ltimes Pitch

  Included angle =29 degrees

Generally Acme thread are following types

  1.General purpose(G) Acme

  2.Centralizing(C) Acme

  3. Stub Acme  

Centralizing(C) Acme threads have tighter tolerance during manufacturing as compare to General purpose(G) Acme  threads.

8 0
3 years ago
The typical measurement of hotel demand is the room night (RN). When we say that each room night is perishable , we mean that on
Marta_Voda [28]

Answer:

Yes once a room is not rented for a couple of hours in the night then it is perishable.

8 0
3 years ago
Other questions:
  • A closely wound, circular coil with radius 2.80 cm has 720 turns. Part APart complete What must the current in the coil be if th
    14·1 answer
  • A battery rated at 7.2 V and 10000 J is connected across a light bulb. Assume that the internal resistance of the battery is neg
    14·1 answer
  • Using your knowledge of how an ATM is used, develop a set of use-cases that could serve as a basis for understanding the require
    11·1 answer
  • 5. What are the 3 basic types of electrical circuits?
    12·1 answer
  • In natural convection, the fluid is forced to flow over a surface or in a tube by an external mean such as a pump or a fan. a)-
    10·1 answer
  • If you owned a business, what are some of the ways you could follow green computing recommendations with regards to recycling an
    13·1 answer
  • A resource has value, and people are willing to pay for it most likely because the resource is
    9·2 answers
  • How do I do this?<br> Blueprints, complete the missing view.
    15·1 answer
  • NO LINK plsssss just answer
    9·1 answer
  • Liquid methanol is pumped from a large storage tank through a 1-in.ID pipe at a rate of 3.00gal/mm.
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!