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
Technician A says vehicles with electronic throttle control do not need a separate cruise control module, stepper motor, or cabl
8_murik_8 [283]

Answer: its A

Explanation:

3 0
3 years ago
A ramp from an expressway with a design speed of 30 mi/h connects with a local road, forming a T intersection. An additional lan
hram777 [196]

Answer:

the width of the turning roadway = 15 ft

Explanation:

Given that:

A ramp from an expressway with a design speed(u) =  30 mi/h connects with a local road

Using 0.08 for superelevation(e)

The minimum radius of the curve on the road can be determined by using the expression:

R = \dfrac{u^2}{15(e+f_s)}

where;

R= radius

f_s = coefficient of friction

From the tables of coefficient of friction for a design speed at 30 mi/h ;

f_s = 0.20

So;

R = \dfrac{30^2}{15(0.08+0.20)}

R = \dfrac{900}{15(0.28)}

R = \dfrac{900}{4.2}

R = 214.29 ft

R ≅ 215 ft

However; given that :

The turning roadway has stabilized shoulders on both sides and will provide for a onelane, one-way operation with no provision for passing a stalled vehicle.

From the tables of "Design widths of pavement for turning roads"

For a One-way operation with no provision for passing a stalled vehicle; this criteria falls under Case 1 operation

Similarly; we are told that the design vehicle is a single-unit truck; so therefore , it falls under traffic condition B.

As such in Case 1 operation that falls under traffic condition B  in accordance with the Design widths of pavement for turning roads;

If the radius = 215 ft; the value for the width of the turning roadway for this conditions = 15ft

Hence; the width of the turning roadway = 15 ft

5 0
2 years ago
Mention the types of water demend
amm1812

Answer:

domestic, public, commercial, and industrial uses.

8 0
2 years ago
The driveshaft of an automobile is being designed to transmit 134 hp at 2900 rpm. Determine the minimum diameter d required for
Misha Larkins [42]

Answer:

The minimum diameter is 1.344 in

Explanation:

The angular speed of the driveshaft is equal to:

w=\frac{2\pi N}{60}

Where

N = rotational speed of the driveshaft = 2900 rpm

w=\frac{2\pi *2900}{60} =303.69rad/s

The torque in the driveshaft is equal to:

\tau=\frac{P}{w}

Where

P = power transmitted by the driveshaft = 134 hp = 73700 lb*ft/s

\tau=\frac{73700}{303.69}  =242.68lb*ft

The minimum diameter is equal to:

d_{min} =(\frac{16T}{\pi *\tau } )^{1/3}

Where

T = shear stress = 6100 psi

τ = 242.68 lb*ft = 2912.16 lb*in

d_{min} =(\frac{16*2912.16}{\pi *6100} )^{1/3} =1.344in

4 0
3 years ago
Multi media common work context for reporters correspondents
GuDViN [60]

Answer:

I dont know sorry i in a hurry and i need points so vary sorry

Explanation:

my assistant is due at 9:00 today . Not that you care but

6 0
3 years ago
Other questions:
  • Find the number of Btu conducted through a wall in 8 hours. The wall is 8 feet high by 24 feet long and has a total R-value of 1
    13·1 answer
  • The following liquids are stored in a storage vessel at 1 atm and 25°C. The vessels are vented with air. Determine whether the e
    5·1 answer
  • Following are several z-transforms. For each one, determine inverse z-transform using both the method based on the partial-fract
    10·1 answer
  • Suppose an assembly requires five components from five different vendors. To guarantee starting the assembly on time with 90 per
    14·1 answer
  • A seamless pipe 800mm diameter contains a fluid under a pressure of 2N/mm2. If the permissible tensile stress is 100N/mm2, find
    11·1 answer
  • Engineers will redesign their products when they find flaws. TRUE O False​
    10·1 answer
  • A person walks into a refrigerated warehouse with head uncovered. Model the head as a 25- cm diameter sphere at 35°C with a surf
    12·1 answer
  • Three-dimensional measuring references all of these EXCEPT:
    10·1 answer
  • Explain the process of energy conversion by describing how energy was converted from the windmill design brief. Discuss the diff
    12·1 answer
  • Why might many general contractors begin their careers as construction workers?
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!