Analyze the data and compute the percent of batches

Assignment Help Computer Engineering
Reference no: EM132145646

Sutures: Sutures are strands or fibers used to sew living tissue together after an injury or an operation. Packages of sutures must be sealed carefully before they are shipped to hospitals to prevent contamination.

The packages are sealed on a machine with a sealing die. For the sealing to be a success, the die must be maintained at an established temperature, and contact the package with a predetermined pressure for an established time period.

This time period is called the dwell time. The acceptable ranges for these three conditions are as follows:

Temperature: 150-170° C

Pressure: 60-70 psi

Dwell Time: 2-2.5 sec

Write a C++ program that reads a data file (from disk) containing data on batches of rejected sutures, the data is shown below. Each line of the file contains a batch number, temperature, pressure and dwell time for a batch.

As the Quality Control Engineer, you need to analyze the data and compute the percent of batches rejected due to temperature, percent rejected due to pressure and percent rejected due to dwell time.

If a specific batch was rejected in more than one category, it should be counted in all of the applicable totals. Write the output to a file.

Your input file* contains the following data:

24551 145.5 62.3 2.13

24582 153.7 63.0 2.52

26553 160.4 58.8 2.51

26613 159.5 58.9 2.02

26624 160.5 61.5 1.98

27725 170.9 62.5 2.03

27832 147.8 65.6 2.12

27976 155.4 71.0 2.34

28061 162.7 57.9 2.61

28251 171.3 59.2 2.23

28347 164.8 65.0 2.45

28782 152.8 58.6 2.05

28788 167.2 67.3 1.89

29192 149.6 60.9 2.26

29227 172.0 67.8 2.33

29482 155.2 73.1 2.47

29522 148.5 72.1 2.27

29617 168.3 49.7 2.63

29785 169.4 64.4 1.87

29885 146.6 55.9 2.42

29943 170.3 66.8 2.31

29957 166.3 56.8 2.11

29968 162.8 64.6 2.68

29987 149.2 69.7 2.22

Use ifstream infile and ifstream outfile--infile.open/outfile.open to read file.

Your output file should have: your names, and the results in terms of percent of failures in each category, the total numbers in each category and the total number of batches rejected.

Please show full C++ source codes(include header, structure with indentation and comments), screen shot of output file with correct results.

Reference no: EM132145646

Questions Cloud

How could a statechart influence the design of class diagram : Describe the difference in portability in print and display output technologies using your Roosevelt University Semester Schedule of Courses as the example.
What is the syntax of a for statement in the bash script : Write a snippet of code using a for loop that will write numbers less than 100 that are evenly divisible by both two and three.
State the rule that is applied to place an entity into third : State the rule that is applied to place an entity into third normal form. Revise the data model to place it in third normal form.
What is the upper arm weight for a male : Where is the COM located on the forearm with respect to the shoulder joint, given the upper arm is 30 cm and the forearm is 18cm?
Analyze the data and compute the percent of batches : Analyze the data and compute the percent of batches rejected due to temperature, percent rejected due to pressure.
What is the syntax of the while construct : What is the syntax of the "while" construct in the c programming language?
Describe a difficulty in semaphore solution to this barrier : A barrier is supposed to block a calling thread until all N threads have reached the barrier.
What is the market value of the bond : Given the market rate of interest of 4.4 percent, what is the market value of the bond? (Round answer to 2 decimal places, e.g. 15.25.)
What is the maximum amount mark should be willing to pay : If the current market rate is 7.50 percent, what is the maximum amount Mark should be willing to pay for this bond? (Round answer to 2 decimal places, e.g. 15.2

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd