Question: 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


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
Get step-by-step solutions from verified subject matter experts
