CSE 222 Closed Lab #1


Please follow these steps in closed lab:

  1. Select a partner to work with on the closed lab exercise and decide whose account to use for it.  After you have completed the closed lab exercise, the person whose account has been used may e-mail to his/her partner the file(s) containing the solution that was devised by the partnership.
  2. If you have not already done so this quarter, login to your new account (see CSE Environment - Getting Started for details) and execute the command:
  3. /class/sce/bin/getsetup
  4. Create/open a file called ".forward" (without the quotation marks but with the . at the beginning) in your home directory.  You can do this by starting emacs and trying to open this file (using ^X^F); if you don't have such a file already, then you'll get an empty buffer. There shoud be exactly one line in this file: the e-mail address to which you'd like to forward any e-mail sent to your CSE account.  Once you have this, save the file.  Now, you won't have to worry about missing any e-mail that your instructor, the grader, or anyone else sends to your CSE account.
  5. Logout and let your partner do the same thing as above, if necessary.  Then login to the account you have decided to use for this exercise.
  6. Copy the initial closed lab #1 files to your own working directory and get into that directory:
    cp -R /class/sce/now/222/closed-labs/closed-lab01/Closed_Lab01/ .
    cd Closed_Lab01
  7. Look through the file Get_Put_Words_Test.cpp, which is a test driver for the Get_Words operation from the homework assignment, just to get an idea of the overall structure and to see what main does.
  8. Fill in the code to create concrete_instance class Set_Of_Text by instantiating Set_Kernel_1_C <Text>.  This declaration is virtually identical to what was discussed in class and shown in the handouts for instantiating Sequence_Kernel_1a_C.
  9. Execute the "Build Project" command to compile the file.  There is no reason to execute the program because it won't do anything interesting.  The purpose of this step is to confirm that you have written the above declaration correctly.
  10. Fill in the body of the Get_Words operation, which you should have done as the homework.  Then execute the "Build Project" command to compile the file.
  11. Fill in the body of the Put_Words operation.  Then execute the "Build Project" command to compile the file.  This time, run the program from the command line in an xterm window and redirect output to a file with a .html extension; open this file in a browser.
  12. Let your instructor know when you are satisfied both operations work satisfactorily, in order to get credit for this closed lab.