Question: write c++ Assignment Write a program that checks the quality of the products coming from a production line using a function. For each product, there

write c++
write c++ Assignment Write a program that checks the quality of the

Assignment Write a program that checks the quality of the products coming from a production line using a function. For each product, there is a compound whose quantity must be CLOSE to its ideal value. However, due to manufacturing problems this quantity varies from product to product. First, the program will read the number of products (numProd) as an int. Then, the ideal value of the compound will be given (idealval) as a double followed by the tolerance level (tollevel) as a double Lastly, one by one the quantity of the critical compound for each item will be given as double values The program will check the critical compound value of each product using a function (QuantityAcceptable) that gets necessary items as parameters and returns a bool value. The main function will print out the index of the defective items as int values. An item that is OUTSIDE the tolerance boundary is a defective item" The tolerance boundary can be calculated with the following formulas Lower Boundary idealval - (idealval tollevel) Upper Boundary idealval Oidealval tollevel) NOTE: The quantity acceptability check Must be done in the function. And printing the result to the screen MUST be done in the main function NOTE: The index number of the first product is 1, NOTO nput 5.100.10 59.8 9.5 11.2 10.1 89.5 0.12 6 105 0.20 99.9 10.2 82 12 11 79.5 102 98 110 105 104 130 Output 14 4567 Answer assignment

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!