Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

25000 160.4 60.3 2.33 25588 173.9 59.0 2.50 26553 160.4 59.8 2.51 26613 159.5 57

ID: 3595152 • Letter: 2

Question

25000 160.4 60.3 2.33 25588 173.9 59.0 2.50 26553 160.4 59.8 2.51 26613 159.5 57.9 2.02 26624 160.5 61.5 1.98 27225 146.9 52.5 2.43 27832 147.8 65.6 2.12 27976 155.4 71.0 2.34 28061 162.7 57.9 2.61 28251 176.3 59.2 2.23 28347 164.8 65.0 2.45 28782 152.8 58.6 2.05 28787 167.2 71.3 1.90 29192 151.1 60.9 2.26 29227 172.0 67.8 2.33 29482 175.2 73.1 2.47 29522 148.5 72.1 2.27 29617 168.3 69.7 2.43 29785 169.4 64.4 1.87 29985 146.6 55.9 2.42 29943 170.3 76.8 2.31 29957 166.3 56.8 2.11 29978 162.8 64.6 2.48 29987 159.2 63.7 2.22 29999 163.2 65.4 2.49
Sutures are strands of synthetic medical-grade fibers used to sew living tissue like skin together after an injury or an operation. Packages of sutures must be sealed carefully and sterilized before they are shipped to hospitals to prevent contamination. The packages are sealed on a machine in a factory 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. 3. 8090H Sealing die applies heat & pressure to perimeter of suture package for dwell time Figure 1. Suture removed from package. Figure 2. Suture package. Temperature: Pressure: Dwell Time: 150 170° C 60-70 psi 2.0- 2.5 seconds Figure 3. Medical sealing die machine (sealing perimeters shown in red dotted lines). The problem is that the medical device company who manufacturers these sutures needs to perform a quality control analysis of the day's production of suture packages to make sure that all the suture batches (4 suture packages are sealed in 1 batch at the same time) were manufactured according to the Acceptable Sealing Conditions (shown above). As the Quality Control Engineer, it is your job to analyze the sealing die machine data to determine which batches may have failed. Any batches that do not meet the Acceptable Sealing Conditions must be thrown away because sterility after the secondary sterilization process cannot be guaranteed due to inadequate package seals. Sutures must be sterile to be used on humans, otherwise infection may occur.

Explanation / Answer

//heres the code, do comment if oyu have any doubt. Thumbs up if this helped!

#include <iostream>

#include<fstream>

using namespace std;

int main() {

// your code goes here

int cT=0,cD=0,cP=0,cnt=0,i,cTot=0; //declare all variables

ifstream inputStream("results.txt"); //open results.tx

double arr[100][4];

for(i = 0; i <100; i++)

{

for(int j = 0; j < 4; j++)

{

while(!inputStream.eof())

{

inputStream >> arr[i][j]; //read the file into the array until eof

}

}

cnt++; //maintain count of lines  

}

for(i=0;i<cnt;i++)

{

if(arr[i][1] < 150 || arr[i][1] > 170) //check temperature discard

{

cT++;

}

else if(arr[i][2] < 60 || arr[i][2] > 70) //check pressure discard

{

cP++;

}

else if(arr[i][3] <2 || arr[i][3] > 3) //check dwell time discard

{

cD++;

}

else if(arr[i][3] <2 || arr[i][3] > 3 || arr[i][2] < 60 || arr[i][2] > 70 || arr[i][1] < 150 || arr[i][1] > 170) //check common discard

cTot++;

}

cout<<" # of batches rejected due to temperature is "<<cT<<" which is "<<cT*100/cnt<<"% of the total";

cout<<" # of batches rejected due to pressure is "<<cP<<" which is "<<cP*100/cnt<<"% of the total";

cout<<" # of batches rejected due to dwell time is "<<cD<<" which is "<<cT*100/cnt<<"% of the total";

cout<<" # of batches rejected is "<<cTot<<" which is "<<cTot*100/cnt<<"% of the total";

return 0;

}

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote