1. (10 points) Part 1: The score will be computed from the printed confirmation sheet that shows you have completed the pointer exercise.
  2. (60 points) Part 2: vflip
    1. (20 points) vflip flips a pgm file vertically
    2. (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.
      1. (3 points) improper number of command line arguments
      2. (3 points) failure to open the input file
      3. (3 points)failure to open the output file
      4. (3 points) invalid input on the first, second, or third line of the pgm file
      5. (2 points) pixel values that are outside the range 0-255
      6. (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
      7. (3 points): Error message for an empty file
    3. Commenting (10 points): See the commenting information on the course's web page for advice on how to comment your programs,
    4. Program Style (10 points): Are the programs well-organized and do they solve the problem in the most straightforward, efficient way possible?
  3. (30 points) Part 3: Analysis of Algorithms
    1. Problem 1: 8 points
    2. Problem 2: 8 points
    3. Problem 3: 6 points
    4. Problem 4: 8 pionts