Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

LP Immersive Reader DEA 26.12.2 Closed ASSE Max. 5CC Assignment Write a program that checks the pressure of soda cans coming from a production line

image text in transcribed
LP Immersive Reader DEA 26.12.2 Closed ASSE Max. 5CC Assignment Write a program that checks the pressure of soda cans coming from a production line using a function. For each soda, the pressure value must be CLOSE to its ideal value. However, due to manufacturing problems the pressure value from can to can. First, the program will read the number of cans (numCan) as an int. Then, the ideal pressure value will be given (idealPsi) as a double followed by lower tolerance level (lowerTLevel) as a double and upper tolerance level (upperTLevel) as a double Lastly, one by one the pressure values for each can will be given as double values. The program will check the pressure value of each can using a function (isPressureAcceptable) 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 = idealPst - (idealPsi* lower Tilevel) Upper Boundary = idealPsi + (idealPsi*upperTilevel) NOTE: The pressure 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, NOT O. 492 0.12 0.2 Input 855.3 0.04 0.1 6 72 0.20 55 55.1 58 55.2 55.6 72 70 73 72.1 72 72.01 69.8 55 54.9 100 92 2008 Output 34 346 Answer assignment >> Collapse

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored 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

Recommended Textbook for

Distributed Relational Database Architecture Connectivity Guide

Authors: Teresa Hopper

4th Edition

0133983064, 978-0133983067

More Books

Students also viewed these Databases questions

Question

Analyze the impact of labor unions on health care.

Answered: 1 week ago

Question

Assess three motivational theories as they apply to health care.

Answered: 1 week ago

Question

Discuss the history of U.S. labor unions.

Answered: 1 week ago