Make your robot think with if/else and repeat tasks with for and while loops.
Use sensors and if/else to stop before hitting a wall.
Plant rows, count laps and launch rockets with for loops.
Repeat until the job's done, then put everything together.