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
In plumbing what is a video snake used for
aleksley [76]

Answer:

How to stop toilets  

Explanation:

I think

Hope this helps

7 0
3 years ago
Read 2 more answers
Linus is using a calculator to multiply 5,426 and 30. He enters 5,426 x 300 by mistake. What can Linus do to correct his mistake
Alexxx [7]

Answer:

<em>Linus needs to take one of the zero out and it should be 30 instead 300.</em>

Explanation:

It is because Linus put three zero instead two zero.

4 0
3 years ago
Refrigerant 134a enters the evaporator of a refrigeration system operating at steady state at -16oC and a quality of 20% at a ve
Dmitry [639]

Answer:

mass flow rate = 0.0534 kg/sec

velocity at exit = 29.34 m/sec

Explanation:

From the information given:

Inlet:

Temperature T_1 = -16^0\ C

Quality x_1 = 0.2

Outlet:

Temperature T_2 = -16^0 C

Quality  x_2 = 1

The following data were obtained at saturation properties of R134a at the temperature of -16° C

v_f= 0.7428 \times 10^{-3} \ m^3/kg \\ \\  v_g = 0.1247 \ m^3 /kg

v_1 = v_f + x_1 ( vg - ( v_f)) \\ \\ v_1 = 0.7428 \times 10^{-3} + 0.2 (0.1247 -(0.7428 \times 10^{-3})) \\ \\  v_1 = 0.0255 \ m^3/kg \\ \\ \\  v_2 = v_g = 0.1247 \ m^3/kg

m = \rho_1A_1v_1 = \rho_2A_2v_2 \\ \\  m = \dfrac{1}{0.0255} \times \dfrac{\pi}{4}\times (1.7 \times 10^{-2})^2\times 6  \\ \\ \mathbf{m = 0.0534 \ kg/sec}

\rho_1A_1v_1 = \rho_2A_2v_2 \\ \\ A_1 =A_2  \\ \\  \rho_1v_1 = \rho_2v_2   \\ \\ \implies \dfrac{1}{0.0255} \times6 = \dfrac{1}{0.1247}\times (v_2)\\ \\ \\\mathbf{\\ v_2 = 29.34 \ m/sec}

3 0
3 years ago
Select three types of lines that engineers use to help represent the shape of a design in a sketch.
Vikki [24]

Hidden lines

  • Used to describe the in shown lines (like diagonals inside cubes)

Extension lines:-

  • Used to explain the expansion of structures like building

Object lines

  • Used to describe the structure of objects and the lining to show borders
7 0
3 years ago
0-0 what is Boyle’s Law
Dima020 [189]
A law stating that the pressure of a given mass of an ideal gas is inversely proportional to its volume at a constant temperature.

Hope it helps
8 0
3 years ago
Other questions:
  • A team of engineers in designing a new rover to explore the surface of Mars.
    8·2 answers
  • The acceleration of a particle is given by a = 2t − 10, where a is in meters per second squared and t is in seconds. Determine t
    11·1 answer
  • A student is using a 12.9 ft ramp to raise an object 6 ft above the ground.
    5·1 answer
  • The Canadair CL-215T amphibious aircraft is specially designed to fight fires. It is the only production aircraft that can scoop
    7·1 answer
  • A 6-pole, 50 Hz squirrel cage induction motor has rotor resistance and standstill reactance referred to stator of 0.2 ohm and 1
    7·1 answer
  • Impact strips may be designed into a bumper cover.<br> True<br> False
    14·1 answer
  • Help now please evaluate using the commutative property: 40 (32) (10) (25)
    8·1 answer
  • What is the smallest variable type I can use to represent the number 27?
    9·1 answer
  • Why do power plants DO NOT use permanent magnetics?
    5·1 answer
  • Six 15-HP continuous-duty motors are connected to a common 480-volt feeder. The nameplate of each motor indicates: Full load amp
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!