- (10 points) Part 1: The score will be computed from the
printed confirmation sheet that shows
you have completed the pointer exercise.
- (60 points) Part 2: vflip
- (20 points) vflip flips a pgm file vertically
- (20 points) error conditions: You should given an appropriate error message and
exit the program if any of these errors are detected. When appropriate,
give the line number in the input file on which the error occurred.
- (3 points) improper number of command line arguments
- (3 points) failure to open the input file
- (3 points)failure to open the output file
- (3 points) invalid input on the first, second, or third line of the pgm file
- (2 points) pixel values that are outside the range 0-255
- (3 points) insufficient input (i.e., there are fewer than row*column
pixels in the input). Do not worry about the opposite case in
which there are too many pixel values. If there are too many
pixel values, simply ignore them.y
- (3 points): Error message for an empty file
- Commenting (10 points): See the commenting
information
on the course's web page for advice on how to comment your programs,
- Program Style (10 points): Are the programs well-organized and do they
solve the problem in the most straightforward, efficient way possible?
- (30 points) Part 3: Analysis of Algorithms
- Problem 1: 8 points
- Problem 2: 8 points
- Problem 3: 6 points
- Problem 4: 8 pionts