- :-

Topics Covered

  • Storing Multiple Values
  • Lesson Links

    Check Your Understanding:
    1. 1. True / False: A function can be called multiple times.
    2. True
      False
    3. 2. Which of the following is the Boolean operator for not equal to?
    4. !=
      !!
      ==
      ++
    Try It!
    Try it! 1

    Colored Lines

    Create a new program to count all the red and green lines.



    This requires the use of the color sensor placed facing down.

    Try it!
    Move Multiple Lines - Mini Challenge

    Mini Challenge 1: Line Counting

    This challenge requires a program that will detect and count the number of lines found on a challenge board until a sensor detects that a wall is within 15 cm.

    Lines should be spaced apart with different distances and the lines should also have different widths.

    To show that the robot is counting lines, the robot should blink a light for each line it counts.

    When the robot stops near the wall, it should blink a light for the number of lines that it counted.
    • Recreate the table below on any surface. Have the robot start on one end (1) and travel to the other. Along the way, the robot should blink for every line, then at the end, blink the number of times for the number of lines it encountered, using the VEX IQ Touch LED Light Sensor.

    Mini Challenge PDF[ Line Counting Challenge.pdf ]