Text book:
page 376 problem 1,2,3,4,5,6,7,8
You should submit your answer through the Google form which is sent to you by Email.
Due: next Monday Class time 04/22/13 10:10
CSCE206
Monday, April 15, 2013
Monday, April 8, 2013
Monday, April 1, 2013
Project 7: Simulate the system
Page 302. Problem 29
A good reference is "lecture 24 code sim_system" in dropbox.
zip archive
Due: next Monday 4/8/2013 midnight
A good reference is "lecture 24 code sim_system" in dropbox.
zip archive
Due: next Monday 4/8/2013 midnight
Thursday, March 28, 2013
Written Homework 5
Wednesday, March 20, 2013
Project 6: Prime Number output
Write a void function that uses two nested for loops and the modulus(%) operator to detect and print to a specified output file, the first n prime integers. Recall that a prime number is a number that is evenly divisible only by 1 and itself.
Hint: the function prototype is : void primeGen(int n, ofstream& file);
and a precondition is that file is defined.
Due: next Wednesday, 3/27/13 midnight
Hint: the function prototype is : void primeGen(int n, ofstream& file);
and a precondition is that file is defined.
Due: next Wednesday, 3/27/13 midnight
Monday, February 25, 2013
Project 5: Surture Packaging
Page 221, Problem 24
Due: next Monday midnight, 3/4/13
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, 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 degree C
Pressure: 60-70 psi
Dwell time: 2-2.5 s
24. A data file named suture.dat contains information on batches of suturtes
that have been rejected during a one-week period. Each line in the data file contains the batch
number, the temperature, the pressure, and the dwell time for a rejected batch. The quality
control engineer would like to analyze the information and needs a report that computes the
percent of the batches rejected due to pressure, due to temperature and the percent rejected due to dwell time. It is
possible that a specific batch may have been rejected for more than a reason and should be
counted in all acceptable totals. Write a program to compute and print these three percentages.
Use the following test data:
(The red numbers are what actually in your file.
-99s are sentinel signal for end checking.
You may want to use my class example(in dropbox) as your template)
(In order to make sure your program works properly, you could manually check out the results,
since the data file is very small.
For example, due to Temperature, it fails at batch 24551. So the percentage would be 1/5 = 20%
You could also check others)
Batch Number Temperature Pressure Dwell Time
24551 145.5 62.3 2.23
24582 153.7 62.3 2.52
26553 160.3 62.3 2.51
26623 159.5 62.3 2.01
26642 160.3 62.3 1.98
-99 -99 -99 -99
Due: next Monday midnight, 3/4/13
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, 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 degree C
Pressure: 60-70 psi
Dwell time: 2-2.5 s
24. A data file named suture.dat contains information on batches of suturtes
that have been rejected during a one-week period. Each line in the data file contains the batch
number, the temperature, the pressure, and the dwell time for a rejected batch. The quality
control engineer would like to analyze the information and needs a report that computes the
percent of the batches rejected due to pressure, due to temperature and the percent rejected due to dwell time. It is
possible that a specific batch may have been rejected for more than a reason and should be
counted in all acceptable totals. Write a program to compute and print these three percentages.
Use the following test data:
(The red numbers are what actually in your file.
-99s are sentinel signal for end checking.
You may want to use my class example(in dropbox) as your template)
(In order to make sure your program works properly, you could manually check out the results,
since the data file is very small.
For example, due to Temperature, it fails at batch 24551. So the percentage would be 1/5 = 20%
You could also check others)
Batch Number Temperature Pressure Dwell Time
24551 145.5 62.3 2.23
24582 153.7 62.3 2.52
26553 160.3 62.3 2.51
26623 159.5 62.3 2.01
26642 160.3 62.3 1.98
-99 -99 -99 -99
Monday, February 18, 2013
Announcement: Midterm time
The midterm date is
Wednesday Class time 03/06/13 10:10
The review data is
Monday Class time 03/04/13 10:10
Wednesday Class time 03/06/13 10:10
The review data is
Monday Class time 03/04/13 10:10
Subscribe to:
Posts (Atom)