I am afraid your explanation is somewhat...elementary as well
How will the robot move? Wheels? Tracks?
Will there be obstacles in the robot's way?
How are the coordinates determined?
How will the robot determine its position?
Are there markers on the floor, wall or somewhere else that can be used by the robot to see where it is?
We're going to need a whole lot more info, those questions above are just a start. The more info you give is, the better we can help you. As for pre-written code, hrmm, I wouldn't bet on it
| Professional Conduit of Reasonableness
| (Title bestowed upon on the 8th day of November, 2013)
| My Blog: I'd Rather Be Building Robots
| ROBOTC 3rd Party Driver Suite: [Project Page