Ask Question
19 December, 05:46

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

+4
Answers (1)
  1. 19 December, 06:10
    0
    The solution code is 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")

    Explanation:

    To create if statement, we just use the keyword "if" and joined with an operator either (after). Then we can use the print function to display the message based on the condition that met.
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Write multiple if statements: If carYear is before 1968, print "Probably has few safety features." (without quotes). If after 1971, print ...” in 📙 Engineering if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers