Question: solve by using c++ A machine produces 5 components every hour and each component is defined by 7 measurements. A quality function needs to verify

solve by using c++
 solve by using c++ A machine produces 5 components every hour

A machine produces 5 components every hour and each component is defined by 7 measurements. A quality function needs to verify that component measurements fall within a specified range. Write a function named checkQuality(), that takes as parameter a two-dimensional array named M of size 5x7 and another parameter named delta of type float. The array M contains components measurements in which each row represents a component and each column represents a measurement. The function should calculate and display the sum of the first row in M. The function should then calculate the sum of each remaining row in M and compares with the sum of the first row. If the difference (sum of row minus sum of first row) is larger than delta, then display the row number with statement 'defect component'. SAMPLE OUTPUT (delta=3) Sum of first row: 27 0 1 2 3 4 5 6 5 11 1 3 1 2 4 7 10 2 3 1 2 4 NO 2 defect component 4 defect component Component NON 11 1 2 4 5 11 23 ISA134 192 *

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!