Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I don't know what is the problem ACILEYG 5.3.2: If-else statements Reset Write multiple if statements If carYear is before 1968, print Probably has few

image text in transcribed

image text in transcribed

I don't know what is the problem

ACILEYG 5.3.2: If-else statements Reset Write multiple if statements If carYear is before 1968, print "Probably has few safety features."(without quotes) If after 1969, print "Probably has seat belts. If after 1992, print "Probably has electronic stability control. If after 2002, print "Probably has tire-pressure monitor. End each phrase with period and newline. Ex:carYear-1995 prints Probably has seat belts Probably has electronic stability control 1 public class SafetyFeatures t 2 public static void main (String args) int carYear; 4 carYear2006; 6 Your solution goes here / 7if (carYear-1968) System.out.println("Probably has few safety features.") if (carVear >= 1969)( System.out.println("Probably has seat belts."); 12 14 16 if (carYear1992) System.out.println("Probably has electronic stability control.") if (carYear2002) System.out.println("Probably has tire-pressure monitor.") return; 20 21 Check Try again X One possible solution includes four if statements, one for each possible year X Testing for correct output for 1968 Output differs. See highlights below Special character legend Your output Expected Probably has few safety features Program produced no output output

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions