Write multiple if statements: If carYear is before 1968, print "Probably has few safety features." (without quotes). If after 1971, print "Probably has head rests.". If after 1991, print "Probably has anti-lock brakes.". If after 2000, print "Probably has tire-pressure monitor.". End each phrase with period and newline. Ex: carYear

Respuesta :

Answer:

The solution code is written in Python

  1. if(carYear < 1968):
  2.    print("Probably has few safety features.\n")
  3. if(carYear > 1971):
  4.    print("Probably has head rests\n")
  5. if(carYear > 1991):
  6.    print("Probably has anti-lock brakes.\n")
  7. if(carYear > 2000):
  8.    print("Probably has tire-pressure monitor.\n")

Explanation:

To create if statement, we just use the keyword "if" and joined with an operator either < (before) or > (after). Then we can use the print function to display the message based on the condition that met.

As per the question the solution code is for the written in Python.

  • if(carYear < 1968):

  print("Probably has few safety features.\n")

  • if(carYear > 1971):

  print("Probably has head rests\n")

  • if(carYear > 1991):

  print("Probably has anti-lock brakes.\n")

  • if(carYear > 2000):
  •   print("Probably has tire-pressure monitor.\n")

Learn more about the  If carYear is before 1968, print "Probably has

brainly.com/question/13661949