answer.
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]
2 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]2 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
Question 14<br> Which of these is true of a spray wash cabinet?
weqwewe [10]
What are the options to that question. Insufficient question
5 0
2 years ago
Use the drop -down menus to select the appropriate question type. Picking between two possible alternatives: Showing an understa
lora16 [44]

Answer:

Picking between two possible alternatives:

✔ true/false

Showing an understanding of relationships between facts:

✔ matching

Discussing a topic from a personal perspective:

✔ short answer / essay

Demonstrating factual knowledge by eliminating wrong answers and selecting the correct one:

✔ multiple choice

Explanation:

I got it right on edge. have a good day!

9 0
2 years ago
John was a high school teacher earning $ 80,000 per year. He quit his job to start his own business in pizza catering. In order
Anton [14]

Answer:

John should continue with his catering business because accounting and economic profits from pizza catering are more than his annual salary from teaching.

Explanation:

John can earn from teaching $80,000 annually

For starting business of pizza catering John will incur following expense

Tuition for catering skills $2,000

Opportunity cost for withdrew of funds ($110,000 * 5%) $5,500

Interest for Borrowing from friend ($50,000 * 6%) $3,000

Opportunity cost of Rent from premises $12,000

Total opportunity cost $22,500

Revenue:

Revenues from Pizza $400,000

Revenue from Beverages $190,000

Total revenue $590,000

Expenses:

Cashier wages ($55,000 * 2) $110,000

Pizza ingredients $50,000

Manager salary $75,000

Pizza bakers wages ($60,000 * 3) $180,000

Equipment $10,000

Total Expense $425,000

Net Income - Accounting Profit ($590,000 - $425,000) = $165,000

Less opportunity cost $22,500

Economic Profit $142,500

4 0
2 years ago
Gina is about to use a fire extinguisher on a small fire. What factor determines the type of extinguisher she should use
amm1812

There’s 5 different types of fire extinguishers that you can differentiate by their color codes.

Red - Water based

Creme - Foam based

Blue - Powder based

Black - CO2 or carbon dioxide based

Yellow - Wet chemical based

What would determine the type of fire extinguisher used would be the class of fire it is.

Class A - Combustible materials ( i.e. paper, wood) Extinguishers to use - Red, Creme, Blue, and Yellow. (Do not use Black)

Class B - Flammable liquids ( i.e. paint, petrol, alcohol) Extinguishers to use - Creme, Blue, and Black. (Do not use Red or Yellow)

Class C - Flammable gases ( i.e. butane, methane) Extinguishers to use - Blue (Do not use Red, Creme, Black or Yellow)

Class D - Flammable metals ( i.e. lithium, potassium) Extinguishers to use - Blue (Do not use Red, Creme, Black or Yellow)

Class F - Deep fat fryers ( i.e. chip pans) Extinguishers to use - Yellow (Do not use Red, Creme, Blue or Black)

Electrical - any sort of electrical equipment

( i.e. computers, generators) Extinguishers to use - Blue and Black (Do not use Red, Creme or Yellow)

8 0
2 years ago
Read 2 more answers
thermal energy is being added to steam at 475.8 kPa and 75% quality. determine the amount of thermal energy to be added to creat
eduard

Answer:

q_{in} = 528.6\,\frac{kJ}{kg}

Explanation:

Let assume that heating process occurs at constant pressure, the phenomenon is modelled by the use of the First Law of Thermodynamics:

q_{in} = h_{g} - h_{mix}

The specific enthalpies are:

Liquid-Vapor Mixture:

h_{mix} = 2217.2\,\frac{kJ}{kg}

Saturated Vapor:

h_{g} = 2745.8\,\frac{kJ}{kg}

The thermal energy per unit mass required to heat the steam is:

q_{in} = 2745.8\,\frac{kJ}{kg} - 2217.2\,\frac{kJ}{kg}

q_{in} = 528.6\,\frac{kJ}{kg}

7 0
2 years ago
Other questions:
  • Oil with a density of 800 kg/m3 is pumped from a pressure of 0.6 bar to a pressure of 1.4 bar, and the outlet is 3 m above the i
    9·1 answer
  • A 12-L volume of oil is subjected to a pressure change, which produces a volume strain on the oil of -3.0 × 10-4. The bulk modu
    6·1 answer
  • A 0.9% solution of NaCl is considered isotonic to mammalian cells. what molar concentration is this?
    10·1 answer
  • Given a 5x5 matrix for Playfair cipher a. How many possible keys does the Playfair cipher have? Ignore the fact that some keys m
    6·1 answer
  • The atomic radii of a divalent cation and a monovalent anion are 0.77 nm and 0.136 nm, respectively.1- Calculate the force of at
    11·1 answer
  • A piston-cylinder assembly contains 2 lb of air at a temperature of 540 °R and a pressure of 1 atm. The air compressed to a stat
    5·1 answer
  • In this module you learned about searching, sorting and algorithms in C++ and how to implement these elements in your C++ progra
    6·1 answer
  • According to the EWR specifications, ___ is responsible for picking up and disposing of debris or rubbish from
    15·1 answer
  • The typical Canadian worker is able to produce 100 board feet (a unit of measure) of lumber or 1000 light bulbs per year. The wo
    12·1 answer
  • What should always be done before beginning any diagnosis?
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!