1. Write a ladder logic program to perform the function outlined below. (Hint: use a structured technique.)

i) when the input ‘part’ turns on, the value ‘weight’ should be added to an array in memory.

ii) if any ‘weight’ value is greater than 15, and output ‘halt’ should be turned on, and the process should stop. A ‘reset’ input will be turned on to clear the array and start the process again.

iii) when ‘part’ has been activated 10 times the median of the part weights should be found. If it is greater that 14 the process should be stopped as described in step ii).

iv) if the median is less than or equal to 14, then a ‘dump’ output should be turned on for 2 seconds. After that the matrix should be reset and the process should begin again.

[an error occurred while processing this directive]