This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: id1,id2,day,month,year,shift,hour,minute,w,f,sample) i fprintf(manufacture_report,"%05d%05d\t\t%02d/%02d/%4d\t\t%1d\t\t%02d:%02d\n", id1,id2,day,month,year,shift,hour,minute) i if(shift == 1) countshift1++ c if(shift == 2) countshift2++ if(shift == 3) countshift3++ c LINE=LINE++ }while(LINE < 96) printf("Files manufacture.cvs and manufacture_report.txt have been constructed.\n\n") p ttlshftcount = countshift1+countshift2+countshift3 fprintf(manufacture_report, "\nRecords Processed: %d\n\tShift 1: %d\tShift 2: %d\t Shift 3: %d", Sheet1 Page 2 ttlshftcount,countshift1,countshift2,countshift3) fprintf(manufacture_report, "\n\nEnd of Report") fclose(machine_samples_0) fclose(manufacture) fclose(manufacture_report) return EXIT_SUCCESS }...
View Full Document
This lab report was uploaded on 04/17/2008 for the course CS 1023 taught by Professor Kerstetter during the Spring '08 term at Western Michigan.
- Spring '08