Ask Question
3 June, 07:16

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

+3
Answers (1)
  1. 3 June, 07:35
    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 the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers