Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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++
image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions