Design a class self diag chip to represent the


Question: Design a class Self Diag Chip to represent the self-diagnosing chip ue_ scribed in Programming Project 4. This class should include as data components 26-element arrays in which to store the x and y values used in computing the data set correlation coefficient. The class should also include a constructor function with type double parameters m and b representing the line

y = mx + b

that describes how x and y vary when all is going well. This constructor should fill the first 21 elements of the x and y arrays included as data components. Also define a public member function chipOK that takes as parameters two 5-element arrays representing observed field data and returns the correlation coefficient of the combined data. Use class Self DiagChip in a program that automates the selection of the correlation coefficient cutoff for the self-diagnosing chip problem. The new program should process several lists of five (x, y) pairs. Each list is labeled either "fail" or "ok," indicating whether or not the observed data set was accompanied by chip failure. Your program should combine each set of field data with the 21 points on the "all is going well" line and compute the correlation coefficient of the combined data. When all data sets have been processed, display the minimum correlation coefficient associated with an "ok" data set and the maximum correlation coefficient associated with a "fail" data set.

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Design a class self diag chip to represent the
Reference No:- TGS02578093

Expected delivery within 24 Hours