Easy C coding help

For a competition my team needs to write code so that our robot can:
-using an IR sensor follow a white line of white tape with black tape on both sides
-when it reaches a certain point marked by the end of the tape it must drop an item previously placed in its hand
-then return back on the same white line

our robot has two wheels in the front, and a free-flowing wheel in the back (like a lawn mower) our hand is open and closed also with a motor, and the arm is moved with one as well.
We know are using Easy C v6 and we know very little coding. Any advice would help