Write multiple if statements. if car_year is 1969 or earlier, print "few safety features.". if 1970 or later, print "probably has seat belts.". if 1990 or later, print "probably has anti-lock brakes.". if 2000 or later, print "probably has air bags." end each phrase with a period and a newline. ex: car_year = 1995 prints:

Respuesta :

Answer: if (carYear < 1967) {

        System.out.println("Probably has few safety features.");

     }

     if ( carYear > 1970 ){

        System.out.println("Probably has seat belts.");

     }

     if (carYear > 1991) {

        System.out.println("Probably has anti-lock brakes.");

     }

     if ( carYear > 2000) {

        System.out.println("Probably has airbags.");

     }

Explanation:

Just changed the statement in the print line but the rest of the code is the same

Ver imagen DarthVaderBarbie

Following are the program to the given statements:

Program Explanation:

  • Defining a variable "carYear" that uses the input method to input value from the user-end.
  • After-input value a conditional statement is declared that checks the input value.
  • In the next step, it checks the value and compare the value and prints the message.

Program:

carYear=int(input())#defining a variable carYear that inputs value from user-end

if carYear < 1967:#using if block that check carYear less than 1967

   print("Probably has few safety features")#print message

if carYear > 1970:#using if block that check carYear greater than 1970

   print("Probably has seat belts.")#print message

if carYear > 1991:#using if block that check carYear greater than 1991

   print("Probably has anti-lock brakes.")#print message

if carYear > 2000:#using if block that check carYear greater than 2000

   print("Probably has airbags.")#print message

Output:

Please find the attached file.

Learn more:

brainly.com/question/14823857

Ver imagen codiepienagoya