Question: Console terminated RobotRace [Java Application] CAProgram FilesNavaljrel 80,121lbinjavaw.exe (Mar 28, 2017, 9.01.05 AM) elcome to the Robot Race What is the size of your grid?

 Console terminated RobotRace [Java Application] CAProgram FilesNavaljrel 80,121lbinjavaw.exe (Mar 28, 2017,9.01.05 AM) elcome to the Robot Race What is the size ofyour grid? (Must be at least 2) How many robots will race?(Must have at least one robot in the race) Name of robot1 Chuba sparki the Terror Name of robot 2: Move Number RobotChuba is facing E and at position (0,0) need to take 1steps. Result: Chuba is facing E and at position (1,0) Robot Sparkithe Terror is facing E and at position (0,0) need to take

Console terminated RobotRace [Java Application] CAProgram FilesNavaljrel 80,121lbinjavaw.exe (Mar 28, 2017, 9.01.05 AM) elcome to the Robot Race What is the size of your grid? (Must be at least 2) How many robots will race? (Must have at least one robot in the race) Name of robot 1 Chuba sparki the Terror Name of robot 2: Move Number Robot Chuba is facing E and at position (0,0) need to take 1 steps. Result: Chuba is facing E and at position (1,0) Robot Sparki the Terror is facing E and at position (0,0) need to take 1 steps. Result: Sparki the Terror is facing E and at position (1,0) Move Number Robot Chuba is facing E and at position (1,0) need to take 1 steps. Result: Chuba is facing E and at position (2,0) Robot Sparki the Terror is facing E and at position (1,0) need to take 4 steps. New direction: N Result: Sparki the Terror is facing N and at position (4,1) Move Number 3 Robot Chuba is facing E and at position (2,0) need to take 1 steps. Result: Chuba is facing E and at position (3,0) Robot Sparki the Terror is facing N and at position (4,1) need to take 4 steps. New direction: W Result Sparki the Terror is facing W and at position (3,4) Move Number Robot Chuba is facing E and at position (3,0) need to take 3 steps. New direction: N Result: Chuba is facing N and at position (4,2) Robot sparki the Terror is facing W and at position (3,4) need to take 4 steps New direction: S Result: Sparki the Terror is facing s and at position (0,3) Move Number Robot Chuba is facing N and at position (4,2) need to take 3 steps. New direction: W Result: Chuba is facing W and at position (3,4) Robot Sparki the Terror is facing s and at position (0,3) need to take 3 steps Result: sparki the Terror is facing s and at position (e,e) Move Number 6 Robot Chuba is facing W and at position (3,4) need to take 1 steps. Result: Chuba is facing W and at position (2,4) Robot Sparki the Terror is facing s and at position (0,0) need to take 1 steps. New direction: E Result Sparki the Terror is facing E and at position (1,0) Figure 9-Sample of race with 2 robots on a 4x4 grid (continued on next page) Console terminated RobotRace [Java Application] CAProgram FilesNavaljrel 80,121lbinjavaw.exe (Mar 28, 2017, 9.01.05 AM) elcome to the Robot Race What is the size of your grid? (Must be at least 2) How many robots will race? (Must have at least one robot in the race) Name of robot 1 Chuba sparki the Terror Name of robot 2: Move Number Robot Chuba is facing E and at position (0,0) need to take 1 steps. Result: Chuba is facing E and at position (1,0) Robot Sparki the Terror is facing E and at position (0,0) need to take 1 steps. Result: Sparki the Terror is facing E and at position (1,0) Move Number Robot Chuba is facing E and at position (1,0) need to take 1 steps. Result: Chuba is facing E and at position (2,0) Robot Sparki the Terror is facing E and at position (1,0) need to take 4 steps. New direction: N Result: Sparki the Terror is facing N and at position (4,1) Move Number 3 Robot Chuba is facing E and at position (2,0) need to take 1 steps. Result: Chuba is facing E and at position (3,0) Robot Sparki the Terror is facing N and at position (4,1) need to take 4 steps. New direction: W Result Sparki the Terror is facing W and at position (3,4) Move Number Robot Chuba is facing E and at position (3,0) need to take 3 steps. New direction: N Result: Chuba is facing N and at position (4,2) Robot sparki the Terror is facing W and at position (3,4) need to take 4 steps New direction: S Result: Sparki the Terror is facing s and at position (0,3) Move Number Robot Chuba is facing N and at position (4,2) need to take 3 steps. New direction: W Result: Chuba is facing W and at position (3,4) Robot Sparki the Terror is facing s and at position (0,3) need to take 3 steps Result: sparki the Terror is facing s and at position (e,e) Move Number 6 Robot Chuba is facing W and at position (3,4) need to take 1 steps. Result: Chuba is facing W and at position (2,4) Robot Sparki the Terror is facing s and at position (0,0) need to take 1 steps. New direction: E Result Sparki the Terror is facing E and at position (1,0) Figure 9-Sample of race with 2 robots on a 4x4 grid (continued on next page)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!