Question: Write multiple if statements: If carYear is before 1968, put Probably has few safety features. to output. If after 1971, put Probably has seat
Write multiple if statements:
If carYear is before 1968, put "Probably has few safety features. " to output.
If after 1971, put "Probably has seat belts. " to output.
If after 1991, put "Probably has electronic stability control. " to output.
If after 2002, put "Probably has airbags. " to output.
Ex: If carYear is 1995, then output is:
Probably has seat belts. Probably has electronic stability control.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
