How to turn a stepper motor to certain degree?

How do I get an stepper motor turn to certain degree both clockwise and counter clockwise with arduino code?

Ken, have a look at the stepper examples in the IDE, there are examples of moving one revolution both clockwise and anticlockwise.

moving one step at a time and there are many examples via the search button.

You may find some useful stuff in
Stepper Motor Basics
and this
Simple Stepper Code

Post a link to the datasheet for your stepper motor.