Goals for this Warmup

  • Practice programming with pointers (input and output function parameters).
  • Practice programming with 2-d arrays (images).

For this lab, you are welcome to get technical help from another pair on how to use or install any of the tools involved. You may also get syntax help on C. You may not, however, get help on the algorithmic portion of the exercise outside of your partner, office hours, piazza questions to TAs or instructors.

This lab is broken down into several steps:

Set up

You should have already created a hw3 directory and completed the pre-lab. This means everyone has a set of skeleton files that compile.

Exercises

Make sure you add everything to the compile line of your Makefile. Specifically, in order to compile your completed warmup, you'll need warmup3.c, warmup3_main.c, and hw3.h.

This week, I will not give you the lines to put in your Makefile. Based on the lines from previous labs, figure out what to put in your Makefile to compile the warmup.

Submit

At this point, you should have done the following:
  • Checked out your repository
  • Created a folder named hw3 in your repository and run svn add hw3
  • Created four files and filled in the proper information: warmup3.h, warmup3.c, warmup3_main.c and Makefile inside your hw3 directory.
  • Added all of the new files to your repository.
  • Compiled your executable manually and with the Makefile
  • Run your code to make sure it runs properly and inspected the results.
  • Committed your code: $ svn commit -m "hw3 warmup complete"
Now you're ready to move on to hw3!! Remember that the homework is completed individually.