Not all boxes are needed for the code, as there are fewer lines in the response area than the answer bank. (Java)
RESPONSE AREA
Organize answer blocks in the proper order -
Red, yellow, and green light -
@author
First and last name */
ANSWER BANK
Move the necessary blocks over into the response area
} else {
# } else if (lightcolor.equals("yellow")) {
if (lightColor.equals("green")) {
# } System.out.println("Car is stopped");
if (speed > 60) {
# int speed = kb.nextInt();
System.out.println("Stay alert and be safe");
System.out.println("Stay alert and be safe");
public static void main(String[] args) {
boolean carIsInMotion = false;
if (carIsInMotion && speed > 60) {
} import java.util.Scanner;
20
1,2
35 26 13 1.8 3.9
# i
String lightColor = kb.next();
carIsInMotion = true;
# public class Class1 {
Scanner kb = new Scanner(System.in);
System.out.println("Car is slowing down");
carIsInMotion = true;
System.out.println("Car is moving");
21
22
23