Skip to main content

Because loops have not yet been introduced, the following is a perfectly acceptable solution:

Sample VEXcode V5 C++ solution that reads from top to bottom: Arm motor dot set position 0 degrees; arm motor dot spin for forward 90 degrees; arm motor dot spin for reverse 90 degrees; wait 3 seconds; arm motor dot spin for forward 45 degrees; arm motor dot spin for reverse 45 degrees; arm motor dot spin for forward 45 degrees; arm motor dot spin for reverse 45 degrees; wait five seconds. Then there are 6 spin for blocks that move the arm motor forward 90 degrees; reverse 90 degrees; forward 90 degrees; reverse 90 degrees; forward 90 degrees; reverse 90 degrees; .

More advanced students might use loops to simplify the solution.

Sample VEXcode V5 C++ solution that reads from top to bottom: Arm motor dot set position 0 degrees; arm motor dot spin for forward 90 degrees; arm motor dot spin for reverse 90 degrees; wait 3 seconds; repeat 2 arm motor dot spin for forward 45 degrees; arm motor dot spin for reverse 45 degrees; then wait 5 seconds. next is a repeat 3 with arm motor dot spin for forward 90 degrees and arm motor spin for reverse 90 degrees.