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
Consider a fully-clamped circular diaphragm poly-Si with a radius of 250 μm and a thickness of 4 μm. Assume that Young’s modulus
Alina [70]

Answer:

Explanation:

find attached the solution to the question

4 0
3 years ago
Answer true or false 3.Individual people decide what will be produced in a command<br> oconomy
Pie

Answer:

False

Explanation:

The government decides the productions.

7 0
4 years ago
Read 2 more answers
A light bar AD is suspended from a cable BE and supports a 20-kg block at C. The ends A and D of the bar are in contact with fri
babymother [125]

Answer:

Tension in cable BE= 196.2 N

Reactions A and D both are  73.575 N

Explanation:

The free body diagram is as attached sketch. At equilibrium, sum of forces along y axis will be 0 hence

T_{BE}-W=0 hence

T_{BE}=W=20*9.81=196.2 N

Therefore, tension in the cable, T_{BE}=196.2 N

Taking moments about point A, with clockwise moments as positive while anticlockwise moments as negative then

196.2\times 0.125- 196.2\times 0.2+ D_x\times 0.2=0

24.525-39.24+0.2D_x=0

D_x=73.575 N

Similarly,

A_x-D_y=0

A_x=73.575 N

Therefore, both reactions at A and D are 73.575 N

7 0
3 years ago
A new 1.2-ha suburban residential development is to be drained by a storm sewer that connects to the municipal drainage system.
valentinak56 [21]

Answer:

Time of concentration, t_d ⇒ 1280 min

Peak runoff rate, Q_p ⇒4.185 ff³/s

Explanation:

See detailed explanation

6 0
3 years ago
The velocity of a particle which moves along the s-axis is given by = 40 − 3 2/ , ℎ t is in seconds. Calculate the displacement
scoundrel [369]

The displacement ∆S of the particle during the interval from t = 2sec to 4sec is; 210 sec

<h3>How to find the displacement?</h3>

We are given the velocity equation as;

s' = 40 - 3t²

Thus, the speed equation will be gotten by integration of the velocity equation to get;

s = ∫40 - 3t²

s = 40t - ¹/₂t³

Thus, the displacement between times of t = 2 sec and t = 4 sec is;

∆S = [40(4) - ¹/₂(4)³] - [40(2) - ¹/₂(2)³]

∆S = 210 m

Read more about Displacement at; brainly.com/question/4931057

#SPJ1

8 0
2 years ago
Other questions:
  • Light energy produces the only voltage in a solar cell. (a)-True(T) (b)- false(F)
    9·1 answer
  • The Cv factor for a valve is 48. Compute the head loss when 30 GPM of water passes through the valve.
    13·1 answer
  • Air enters the compressor of a cold air-standard Brayton cycle with regeneration and reheat at 100 kPa, 300 K, with a mass flow
    10·1 answer
  • 2. In the above figure, what type of cylinder arrangement is shown in the figure above?
    9·2 answers
  • An air conditioner using refrigerant-134a as the working fluid and operating on the ideal vapor-compression refrigeration cycle
    7·2 answers
  • What are the BENEFITS and RISKS of using automobiles?
    7·1 answer
  • Water discharging into a 10-m-wide rectangular horizontal channel from a sluice gate is observed to have undergone a hydraulic j
    12·1 answer
  • Why are Gas cars Bad?(cons) give me reasons why gasoline cars are bad<br><br>Thx if u help ​
    14·1 answer
  • What have you learned from the previous lesson? Let's try to check your prior knowledge
    9·1 answer
  • A fine-grained soil has a liquid limit of 200%, determined from the Casagrande cup method. The plastic limit was measured by rol
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!