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
You are testing a new jet engine in a test cell at sea level conditions. You measure the mass flow through the engine and find i
bulgar [2K]

Answer:

43248 newtons.

Explanation:

Force = mass x accelerations and units of force are newtons which are given in the question.

here mass = 125 of air and 2.2 of fuel, total = 125+2.2=127.5kg/s  and the velocity of the exhaust is 340m/s.

force = 340m/s * 127.5kg/s = 43248 newtons technically this is wrong (observe units) but i will expalin how i have taken acceleration as a velocity here and mass/unit time as simply mass.

see force is mass times acceleration or deceleration, here our velocity is not changing therefore it is constant 340m/s but if it were to change and become 0 in one second then there would be -340m/s^2 (note the units ) of deceleration and there would be force associated with it and that force is what i have calculated here. similarly there would be mass in flow rate of mass per second, which is also in that one second of time.

let's calculate error.

error = (actual-calculated)/actual. = (43248-60000)/43248= -38.734% less is ofcourse greater than 2%.

So the load cell is not reading correct to within 2% and it should read 43248newtons.

5 0
2 years ago
Read 2 more answers
A 4-kW electric heater runs for 2 hours to raise the room temperature to the desired level. Determine the amount of electric ene
Anna35 [415]

Answer:

Q' = 8 KW.h

Q'=28800 KJ

Explanation:

Given that

Heat Q= 4 KW

time ,t = 2 hours

The amount of energy used in KWh given as

Q ' = Q x t

Q' = 4 x  2 KW.h

Q' = 8 KW.h

We know that

1 h = 60 min = 60 x 60 s  = 3600 s

We know that W  = 1 J/s

The amount of energy used in KJ given as

Q' = 8 x 3600 = 28800 KJ

Therefore

Q' = 8 KW.h

Q'=28800 KJ

6 0
2 years ago
What is chemical engineering​
viktelen [127]

Answer:

Chemical engineering is the branch of engineering that deals with chemical production and the manufacture of products through chemical processes

Explanation:

8 0
3 years ago
In an ideal reheat cycle, steam is generated at 6.3 Mpa, 450 deg. C and partially expands to 0.84 Mpa. At this point, the steam
AURORKA [14]
300 squeare meter 60deegree
7 0
2 years ago
Question 7 of 10
dem82 [27]
I think the answer is C
7 0
3 years ago
Other questions:
  • Compare the use of a low-strength, ductile material (1018 CD) in which the stress-concentration factor can be ignored to a high-
    15·1 answer
  • A fatigue test was conducted in which the mean stress was 90 MPa (13050 psi), and the stress amplitude was 190 MPa (27560 psi).
    14·1 answer
  • An electrical heater is a form of sensible heating process, and heats 0.1m/s of air from 15°C and 80% RH to 50°C? The barometric
    13·1 answer
  • Info security:
    8·1 answer
  • Using the technique of bitwise ANDing, find the IP address of the network # (this could be a network or subnet) on which the mac
    14·1 answer
  • What is the maximum value of the bending stress at the critical cross-section?
    14·1 answer
  • Help me, iv been having problems with ads going in my phones storage files, what can i do to stop this?
    14·2 answers
  • ¿Cómo llevan a cabo el lavado ropa?​
    8·1 answer
  • What is the shape of the output signal on a rigexpert analyzer?
    15·2 answers
  • All of the following have the same units except: Group of answer choices resistance capacitive reactance. inductance. impedance.
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!