How Is Programming Used In Robotics?

How is coding related to robotics?

.

How is programming used in engineering?