Answer to Question #99416 in C++ for Caleb

Question #99416
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 1990, print "Probably has anti-lock brakes.".
If after 2002, print "Probably has tire-pressure monitor.".
End each phrase with period and newline. Ex: carYear = 1995 prints:
Probably has head rests.
Probably has anti-lock brakes.
1
Expert's answer
2019-12-12T07:30:25-0500


if (carYear < 1968)

  cout << "Probably has few safety features." << endl;

if (carYear > 1971)

  cout << "Probably has head rests." << endl;

if (carYear > 1990)

  cout << "Probably has anti-lock brakes." << endl;

if (carYear > 2002)

  cout << "Probably has tire-pressure monitor." << endl;


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS