No programming required....the mechanical clockworks for that was figured out a few hundred years ago.
It may surprise you but using a micro-controller and some servos is today often an easier and simpler solution than building a complex mechanism using cams and clockworks.
True.
Your user name makes that statement hilarious though. :)