The input of programs and data was to be provided to the machine via punched cards , a method being used at the time to direct mechanical looms such as the Jacquard loom .
He could use punch cards to tell the loom what to do , and he could change the punch cards , which means he could program the loom to weave the pattern he wanted .