Introduction (pdf)

Download this code (3 files zipped in one folder) and unzip it. SOLUTION

Lego Programs (polygon will draw any polygon once you specify the number of sides, program 7 computes the sum of numbers between 1 and 100, program 5 calculates sum of even numbers between 1 and 100, program 8 will make the robot explore the nearest obstacle in the 4 directions then will take the direction of the farthest obstacle)