subject

Write multiple if statements: If carYear is before 1967, put "Probably has few safety features.\n" to output.

If after 1970, put "Probably has head rests.\n" to output.

If after 1992, put "Probably has anti-lock brakes.\n" to output.

If after 2002, put "Probably has airbags.\n" to output.

Ex: If carYear is 1995, then output is:

Probably has head rests.
Probably has anti-lock brakes.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 18:00
Budgets you to do all of the following expect a) send frivolously b) avoid over spending c) gain financial independence d) examine your priorities and goals
Answers: 2
question
Computers and Technology, 22.06.2019 22:30
Which of the following factors would your hypothetical supervisor look at when deciding whether to test a biological material sample for dna? the amount of other evidence you have implicating a suspect in a crime the annual budget for the crime lab both of the above none of the above; you would almost always order a test
Answers: 3
question
Computers and Technology, 23.06.2019 12:30
What is the difference between the internet and the world wide web?
Answers: 1
question
Computers and Technology, 24.06.2019 04:10
Write a program that reads a set of floating-point values. ask the user to enter the values, then print • the average of the values. • the smallest of the values. • the largest of the values. • the range, that is the difference between the smallest and largest. of course, you may only prompt for the values once.
Answers: 3
You know the right answer?
Write multiple if statements: If carYear is before 1967, put "Probably has few safety features.\n"...
Questions
question
Computers and Technology, 07.06.2021 17:00
question
Mathematics, 07.06.2021 17:00
question
Physics, 07.06.2021 17:00
question
English, 07.06.2021 17:00
question
Mathematics, 07.06.2021 17:00
question
Mathematics, 07.06.2021 17:00
Questions on the website: 13722363