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
THE MASS FOR OBJECT 1 is 107.01 grams what is the objects force in Newton’s answer please
Aleksandr [31]

Given that,

Mass of the object 1, m = 107.01 grams

To find,

Force on the object.

Solution,

The force acting on the object is gravitational force. The force is given by the formula as follow :

F = mg

g is acceleration due to gravity

F = 0.10701 kg × 9.8 m/s²

F = 1.048 N

So, the force acting on object 1 is 1.048 N.

5 0
3 years ago
The surface of an object is the<br> texture value appearance or function
maksim [4K]
Texture value appearance
4 0
3 years ago
QUESTION:
svet-max [94.6K]
OA bloom is smaller than a bar
6 0
3 years ago
A pool of contaminated water is lined with a 40 cm thick containment barrier. The contaminant in the pit has a concentration of
konstantin123 [22]

This question is incomplete, the complete question is;

A pool of contaminated water is lined with a 40 cm thick containment barrier. The contaminant in the pit has a concentration of 1.5 mol/L, while the groundwater circulating around the pit flows fast enough that the contaminate concentration remains 0. There is initially no contaminant in the barrier material at the time of installation. The governing second order, partial differential equation for diffusion of the contaminant through the barrier is:

dC/dt = D( d²C / dz²)

where c(z,t) represent the concentration of containment of any depth into the barrier at anytime and D is the diffusion coefficient (a constant) for the containment in the barrier material.

a) write all boundary and initial conditions needed to solve this equation for C(z, t)

b) Find the steady  state solution (infinite time) for C(z)

Answer:

a) At t = 0, z= 0, c = 1.5 mol/L

at t =0, z = 0.4m, c = 0 mol/L

b) C(z) = z² - 4.15z + 1.5

Explanation:

a)

The boundary and initial conditions are as follows

At t = 0, z= 0, c = 1.5 mol/L

at t =0, z = 0.4m, c = 0 mol/L

b)

The governing second order, partial differential equation for diffusion of the contaminant through the barrier is :

(dC/dt) = D*(d²C/dz²) ..............equ(1)

For steady state, above equation becomes,

(d²C/dz²) =0

Integrating above equation,

(dC/dz) = Z + C1  { where C1 is integration constant) }

again integrating above equation,

C = z² + C1*z + C2    ...................equ(2)

applying boundary condition : at t =0, z= 0, c = 1.5 mol/L, to above equation

 C = z² + C1*z + C2

1.5 = 0 + 0*0 + c2

C2 = 1.5

applying boundary condition : at t =0, z= 0.4m, c = 0 mol/L, to equation (2) ,

0 = 0.4² + C1*0.4 +  1.5

0 = 0.16 + 0.4C1 + 1.5

0.4C1 = - 1.66

C1 = -1.66/0.4

C1 = -4.15

So, the steady state solution for C(z) is:

C(z) = z² - 4.15z + 1.5

6 0
3 years ago
Question #4
inn [45]

Answer:

Deconstruction

Explanation:

8 0
3 years ago
Other questions:
  • Air enters a compressor operating at steady state at 1.05 bar, 300 K, with a volumetric flow rate of 39 m3/min and exits at 12 b
    6·1 answer
  • A beam spans 25 feet and carries a uniformly distributed dead load equal to 0.6 klf (including beam self-weight) and a live load
    9·1 answer
  • The sliders A and B are connected by a light rigid bar of length l = 20 in. and move with negligible friction in the slots, both
    14·1 answer
  • .The war of the currents in the 1880's involved Thomas Edison and Nikola Tesla on a reality TV show stranded on an island. Each
    9·1 answer
  • Write a function called pyramid(height) that acceptsa parameter ""height"". It then prints a pyramid of that height
    10·1 answer
  • A completely mixed activated-sludge process is being designed for a wastewater flow of 10,000 m3/d (2.64 mgd) using the kinetics
    6·1 answer
  • Join the pad let <br><br> https://pad let.com/56021812/8g75510tedza5v2a
    6·2 answers
  • If 9 + 10 = 21, then what is 10 + 10?
    8·2 answers
  • What are Teets<br><br> I am so confused right kn
    9·1 answer
  • What would be the structure for the body points for a persuasive presentation?.
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!