Ask Question
17 March, 10:14

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

+2
Answers (1)
  1. 17 March, 10:54
    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?
Find 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 you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers