tuestion 29 5 pts fat would be printed if the method caughtSpeeding was called from main as follows: be there are no err
Posted: Sat May 14, 2022 4:35 pm
tuestion 29 5 pts fat would be printed if the method caughtSpeeding was called from main as follows: be there are no errors in this code int result - caughtSpeeding(75, false); if (result { System.out.println("No ticket"); } else if (result 1) { System.out.println("Lower fine"); 1 else System.out.println("Higher Fine); public static int caughtSpeeding (int speed, boolean isBirthday) { iftspeed > 65 66 speed - 85 66 1sBirthday) { return it (speed >= 86 86 IsBirthday return 2; It speed < 65 66 isBirthday) return 0; 1 it (speed > 60 & speed 80) { return 1; 1 if (speed > 81) > else { 2: return; BIVA 2