CS 105

Lab Setup

Note: This lab must be run on wilkes. If you run it on a different machine, you may get incorrect (or at least different) answers.

Partner & Attendance Information

Please show you were here for the lab (or not) by filling out the following information:

Getting the Starter Code

The starter code for this lab is already available on the server in the directory `/cs/cs105/labs/lab2-debugging'. The first step is to make your own copy of the code to work on. From your working directory, run the following commands:

mkdir -p ~/cs105
cd ~/cs105
cp -ai /cs/cs105/labs/lab2-debugging .
cd lab2-debugging

This will create a directory named lab2-debugging in your home directory on the server, and copy the starter code into it. There are three files in the starter code:

  • problem1.c and problem2.c, which are the two programs you'll be working with in this lab.
  • lab02.txt, which is the file where you'll write your answers to the questions in the lab instructions.

Note that you will not be editing problem1.c or problem2.c. You will be running these programs and analyzing their behavior, but you won't be changing their code.

Adding Your Names

Before you start working on the lab, open the file lab02.txt in your favorite text editor (e.g., emacs, nano or vim), and add both partners names at the top of the file. This file is where you'll record your answers to the questions in the lab instructions.

To Complete This Part of the Assignment…

You'll know you're done with this part of the assignment when you've done all of the following:

(When logged in, completion status appears here.)