1. Quality Control of Suture Packaging Sutures are strands or fibers used to sew
ID: 3739769 • Letter: 1
Question
1. Quality Control of Suture Packaging 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 so that contaminants cannot enter the packages. The object that seals the package is referred to as a sealing die. Generally, sealing dies are heated with an electric heater. For the sealing process to be a success, the sealing die is maintained at an established temperature and must contact the package with a predetermined pressure for an established time period. The time period in which the sealing die contacts the package is called the dwell time. Assume that the acceptable range of parameters for an acceptable seal are the following:
Temperature: 150-170 C, Pressure: 60-70 psi, Dwell time: 2-2.5 s
Write a program to verify if a package is sealed carefully or not. Prompt user to input a set of data for 5 packages of sutures using loops. Each package’s data should contains(1) Temperature, (2) Pressure and (3) Dwell time. Use if statement to verify if all of them are in the acceptable range. Display the verification result in a meaningful way.
use C Programming
Explanation / Answer
// C program to verify if the package is sealed properly or not. It displays which packages are sealed properly and which ones are not.
#include <stdio.h>
#include <string.h>
// This structure defines the details required to verify if a package is sealed carefully or not.
struct package_sealing
{
float temperature;
float pressure;
float dwell_time;
};
int verify_package(float temp, float press, float dwell_time){
// Verifying all the constraints. This if statement makes sure everything is within the range.
if ( (temp >= 150 && temp<=170) && (press >= 60 && press<=70) && (dwell_time >= 2 && dwell_time<=2.5) )
return 1;
else
return 0;
}
int main()
{
int i;
struct package_sealing packages[5]; // This line creates 5 objects of structure package_sealing
int verification_results[5];
for(i=0; i<5; i++)
{
// Prompting user to enter the input data of package. Each set is an instance of above defined structure
printf(" Please enter the package %d data: ", i+1);
printf(" Enter Temperature: ");
scanf("%f", &packages[i].temperature);
printf(" Enter Pressure: ");
scanf("%f", &packages[i].pressure);
printf(" Enter Dwell Time: ");
scanf("%f", &packages[i].dwell_time);
verification_results[i] = verify_package(packages[i].temperature, packages[i].pressure, packages[i].dwell_time);
}
// Displaying the results
for(i =0; i<5; i++){
if (verification_results[i] == 1)
printf(" Package %d is sealed carefully", i+1);
else
printf(" Package %d is not sealed carefully", i+1);
}
return 0;
}
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.