The first attempt at using the punch card principle to do mathematical calculations led to…