How do I create an Autonomous program ?

Plz help me im using a Iterative class and how do I set it up to SmartDashboard.