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
100 kg of R-134a at 200 kPa are contained in a piston–cylinder device whose volume is 12.322 m3. The piston is now moved until t
LekaFEV [45]

Answer:

T=151 K, U=-1.848*10^6J

Explanation:

The given process occurs when the pressure is constant. Given gas follows the Ideal Gas Law:

 pV=nRT

For the given scenario, we operate with the amount of the gas- n- calculated in moles. To find n, we use molar mass: M=102 g/mol.  

Using the given mass m, molar mass M, we can get the following equation:  

 pV=mRT/M

To calculate change in the internal energy, we need to know initial and final temperatures. We can calculate both temperatures as:

T=pVM/(Rm); so initial T=302.61K and final T=151.289K

 

Now we can calculate change of U:

U=3/2 mRT/M using T- difference in temperatures

 U=-1.848*10^6 J

Note, that the energy was taken away from the system.  

5 0
3 years ago
What is the activation energy (Q) for a vacancy formation if 10 moles of a metal have 2.3 X 10^13 vacancies at 425°C?
Yakvenalex [24]

Answer:

Activation\ Energy=2.5\times 10^{-19}\ J

Explanation:

Using the expression shown below as:

N_v=N\times e^{-\frac {Q_v}{k\times T}

Where,

N_v is the number of vacancies

N is the number of defective sites

k is Boltzmann's constant = 1.38\times 10^{-23}\ J/K

{Q_v} is the activation energy

T is the temperature

Given that:

N_v=2.3\times 10^{13}

N = 10 moles

1 mole = 6.023\times 10^{23}

So,

N = 10\times 6.023\times 10^{23}=6.023\times 10^{24}

Temperature = 425°C

The conversion of T( °C) to T(K) is shown below:

T(K) = T( °C) + 273.15  

So,  

T = (425 + 273.15) K = 698.15 K  

T = 698.15 K

Applying the values as:

2.3\times 10^{13}=6.023\times 10^{24}\times e^{-\frac {Q_v}{1.38\times 10^{-23}\times 698.15}

ln[\frac {2.3}{6.023}\times 10^{-11}]=-\frac {Q_v}{1.38\times 10^{-23}\times 698.15}

Q_v=2.5\times 10^{-19}\ J

4 0
2 years ago
Tech A says that speed density systems use vehicle speed and fuel density to determine injector pulse width. Tech B says that ma
bogdanovich [222]

The person that is correct based on the 2 statements from Tech A and Tech B is; Tech B

A mass flow sensor is defined as a sensor that is used to measure the mass flow rate of air entering a fuel-injected internal combustion engine and then sends a voltage that represents the airflow to the electronic control circuit.

However, for Tech A is incorrect and so the correct answer is that Tech B is right because his statement corresponds with the definition of mass flow sensor.

Read more about fuel injection engines at; brainly.com/question/4561445

8 0
2 years ago
State five applications of thermochromic materials
rusak2 [61]

Explanation:

The end-use industries of thermochromic materials include packaging, printing & coating, medical, textile, industrial, and others. Printing & coating is the fastest-growing end-use industry of thermochromic materials owing to a significant increase in the demand for thermal paper for POS systems. The use of thermochromic materials is gaining momentum for interactive packaging that encourages consumers to take a product off the shelf and use it.

8 0
2 years ago
Who here is a genius?
Pachacha [2.7K]

Answer:

im kinda smart  whyy?

Explanation:

3 0
2 years ago
Read 2 more answers
Other questions:
  • An overhead 25m long, uninsulated industrial steam pipe of 100mm diameter is routed through a building whose walls and air are a
    9·1 answer
  • List four reasons why we need aceuracy in machined parts.
    8·1 answer
  • Determine the magnitude of the resultant force and the moment about the origin. Note: the symbol near the 140 N-m moment are not
    15·1 answer
  • What are the units or dimensions of the shear rate dv/dy (English units)? Then, what are the dimensions of the shear stress τ= μ
    14·1 answer
  • An 80 kg man descends to the ground from an aeroplane using a parachute. If the drag coefficient of the parachute is 0.5 and the
    12·1 answer
  • According to the EWR specifications, ___ is responsible for picking up and disposing of debris or rubbish from
    15·1 answer
  • (Signal Property) Under what condition is a discrete-time signal x[????] or a continuous-time signal x(????) periodic? Determine
    5·1 answer
  • Engineers need to be open-ended when dealing with their designs. Why?
    11·1 answer
  • Your sprayer has a 60-foot wide boom with 36 nozzles along this 60-foot length. Your spray speed is 4.5 miles per hour and you w
    15·1 answer
  • (a) calculate the moment at point "c", where point "c" is the square 3'' below the centroid
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!