Here is a link to a great resources that provided videos and very specific information to put you on the fast track to writing code in RobotC
At the link below; select "Fundamentals" then "Introduction to Programming" and watch ALL the VIDEOS and review the attached PDF files..
http://www.education.rec.ri.cmu.edu/products/teaching_robotc_cortex/index.html
MORE VIDEO SUPPORT
Now watch the Videos on Movement> Moving Forward at the link below for examples and instructions on how to control your motors more precisely... you will need this knowledge for your Coding Challenges.....
in order to run your program without being connected to the USB you have to change your communication type to "USB only" and power cycle to the Cortex. See this link for explantion.
NOTE: Be sure your program starts with a "Button" so you have some way of starting the process once you are disconnected from the computer :)
SENDING ME FILES
Links to shared folder..Be sure to name your file correctly
Period1
https://docs.google.com/folder/d/0B9JHLFwpQEZvZlA5MWhIckFfdDQ/edit?usp=sharing
Period8
https://docs.google.com/folder/d/0B9JHLFwpQEZvb2szMzN3cUhkX0U/edit?usp=sharing