dwell_per = (double)dwell_rejects/(double)batches_rejected;
cout << “Category Percent rejected\n”;
cout << “———————————\n”;
cout << “temperature ” << temp_per << endl;
cout << “pressure ” << press_per << endl;
/* a 1-week period. This program generates a report that presents */
/* the number of the batches rejected due to temperature, the */
/* number rejected due to pressure, the number rejected due to dwell */
/* time and the total number of rejects (with no duplicates) along */
/* with the percentages. */
const double MAX_DWELL = 2.5;
const string FILENAME = “suture.dat”;
int main()
{
/* Define and initialize variables. */
int temp_rejects=0, press_rejects=0, dwell_rejects=0,
exit(1);
}
/* Categorize rejected batches by failures */