CSE 221 Closed Lab 6 Instructions


Table of Contents


1. Objectives

To implement the global operation Convert_To_Integer in the main program Convert_Test.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-lab06
  3. Change or move to the new directory (folder) for this closed lab by typing the "change directory" command:
         cd closed-lab06
  4. Copy the catalog for this closed lab by typing the "copy" command:
        cp -R /class/sce/now/221/closed-labs/catalogs/closed-lab06/*  . 
    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

3. Implement Global Operation

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

4. Compile and Test

Do a Build Project for Convert_Test.cpp. Once all syntax errors are corrected, run the test driver on several test values.


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.