0x19216814412096724824y19216814412096724824
Grid:
Tics Lines:
Width px
Hash Lines:
Width px
Labels:
Font px
Trace Lines:
Robot 1:
Width px
Robot 2:
Width px
Robot 3:
Width px
Robot 4:
Width px
Axes: x-axis y-axis Show Grid
Grid: 24x24 inches 36x36 inches 72x72 inches
96x96 inches 192x192 inches
Quad: 4 quadrants 1 quadrant
Units: US Customary Metric
Background:

Robot 1

Initial Position:
( in, in)
Initial Angle:
deg
Current Position: (32 in, 0 in)
Current Angle: 90 deg
Wheel Radius:
Track Width:
in

Robot 2

Initial Position:
( in, in)
Initial Angle:
deg
Current Position: (96 in, 0 in)
Current Angle: 90 deg
Wheel Radius:
Track Width:
in

Robot 3

Initial Position:
( in, in)
Initial Angle:
deg
Current Position: (168 in, 0 in)
Current Angle: 90 deg
Wheel Radius:
Track Width:
in

Robot 4

Initial Position:
( in, in)
Initial Angle:
deg
Current Position: (72 in, 0 in)
Current Angle: 90 deg
Wheel Radius:
Track Width:
in

Fastest Team
Problem Statement:

Your three-robots team is competing in a biking, swimming, and running race (in order). The length of and the robots' speeds for each activity are listed in the table. Find the order (which robot do which activity - no repeat) that would finish the entire race fastest. The six possibilities are under the Function tab - drag the correct one to the Workspace, place the robots to their correct starting position, and run the code.
/* Code generated by RoboBlockly v2.0 */
/* Problem Statement: 
    Your three robots team is competing in a biking, swimming,
    and running race (in order). The length of and the robots'
    speeds for each activity are listed in the table. Find the
    order (which robot do which activity - no repeat) that
    would finish the entire race fastest. The six possible
    orders are under the Function tab - drag the correct one to
    the Workspace, place the robots to their correct starting
    position, and run the code. */
#include <linkbot.h>
CLinkbotI robot1;
double radius1 = 1.75;
CLinkbotI robot2;
double radius2 = 1.75;
CLinkbotI robot3;
double radius3 = 1.75;

// Describe this function...
void my_1_bike__2__swim__3_run() {
  robot1.setSpeed(6, radius1);
  robot2.setSpeed(7, radius2);
  robot3.setSpeed(5, radius3);
  robot1.driveDistance(192, radius1);
  robot2.driveDistance(150, radius2);
  robot3.driveDistance(120, radius3);
}

// Describe this function...
void my_1_bike__3__swim__2_run() {
  robot1.setSpeed(6, radius1);
  robot3.setSpeed(10, radius3);
  robot2.setSpeed(6, radius2);
  robot1.driveDistance(192, radius1);
  robot3.driveDistance(150, radius3);
  robot2.driveDistance(120, radius2);
}

// Describe this function...
void my_2_bike__1__swim__3_run() {
  robot2.setSpeed(8, radius2);
  robot1.setSpeed(9, radius1);
  robot3.setSpeed(5, radius3);
  robot2.driveDistance(192, radius2);
  robot1.driveDistance(150, radius1);
  robot3.driveDistance(120, radius3);
}

// Describe this function...
void my_2_bike__3_swim__1_run() {
  robot2.setSpeed(8, radius2);
  robot3.setSpeed(10, radius3);
  robot1.setSpeed(4, radius1);
  robot2.driveDistance(192, radius2);
  robot3.driveDistance(150, radius3);
  robot1.driveDistance(120, radius1);
}

// Describe this function...
void my_3_bike__1__swim__2_run() {
  robot3.setSpeed(9, radius3);
  robot1.setSpeed(9, radius1);
  robot2.setSpeed(6, radius2);
  robot3.driveDistance(192, radius3);
  robot1.driveDistance(150, radius1);
  robot2.driveDistance(120, radius2);
}

// Describe this function...
void my_3_bike__2__swim__1_run() {
  robot3.setSpeed(9, radius3);
  robot2.setSpeed(7, radius2);
  robot1.setSpeed(4, radius1);
  robot3.driveDistance(192, radius3);
  robot2.driveDistance(150, radius2);
  robot1.driveDistance(120, radius1);
}

// 3 @ x = 168, 1 @ x = 96, 2 @ x = 32
my_3_bike__1__swim__2_run();
Blocks Save Blocks Load Blocks Show Ch Save Ch Workspace
Problem Statement:

Your three-robots team is competing in a biking, swimming, and running race (in order). The length of and the robots' speeds for each activity are listed in the table. Find the order (which robot do which activity - no repeat) that would finish the entire race fastest. The six possibilities are under the Function tab - drag the correct one to the Workspace, place the robots to their correct starting position, and run the code.

		
Time