I was wondering if you guys have a sample program to integrate with the arduino mega to control the motors for a robotic arm.
I think that is extremely unlikely.You need to start small.One stepper motor driven by the Arduino. Write code to move it in either direction at different speeds and build up from there.
A Web search will find plenty of help.
By the way, cross-posting in more than one section of this forum is frowned upon.