CSE 221 Closed Lab 3 Instructions


Table of Contents


1. Objectives

To implement the global operation Display_Id_Name_Table in the main program Table_Display.cpp.




2. Set Up

Two students should work together at ONE workstation.

  1. Login.


  2. In an xterm window, create a new directory (folder) for this closed lab by typing the "make directory" command:
         mkdir closed-lab03
  3. Change or move to the new directory (folder) for this closed lab by typing the "change directory" command:
         cd closed-lab03
  4. Copy the catalog for this closed lab by typing the "copy" command:
        cp -R /class/sce/now/221/closed-labs/catalogs/closed-lab03/*  . 
    NOTE: The period . is part of the command. It denotes the current directory (folder).

  5. To see what was copied, type the "list" command:
         ls
    You should see three files The two files empty.txt and planets.txt contain id-name pairs for two id-name tables. These two files can be used as test files in Step 4 below.

3. Implement Global Operation

  1. Open the file Table_Display.cpp in xemacs by typing the command:
         xemacs Table_Display.cpp &
  2. Using xemacs, fill in the procedure body for Display_Id_Name_Table in the file Table_Display.cpp.

4. Compile and Test

Do a Build Project for Table_Display.cpp. Once all syntax errors are corrected, run the test driver taking input from the two test files empty.txt and planets.txt, and from other test files that you may have created.


5. Proctor Check-off

When you are satisfied that your implementation is working correctly, raise your hand and one of the proctors will come check it. Then you are finished with the closed lab.