Slowing down servos. How to write it into the program.

As written, your servo will move as quickly as it can from one position to the next.
If, instead of a simple "servo.write (90);" you did something like (and I'm going to lose marks for this)

for (int angle = 0; angle < 90; angle+=10) {
  servo.write (angle);
  delay (50);
}

, your sweep will take longer.

Play with it, change the values, particularly the start, end and increment values (you don't want to go back to zero if you're already at 45 and moving to 90)