CSE 321 Closed Lab 1 Instructions

  1. Objectives: To provide a quicksort implemention for the Sorting_Machine component. 

  2. Account Set Up: Each team should work together at one workstation.
    1. Check account roster for user name.
      If you have a permanent account and your roster user name is not your permanent account, inform the instructor!
    2. Login to Windows. For new accounts the Windows password is last four digits of your OSU ID, first letter of first name, first letter of last name (as your name appears on the university roster), followed by an exclamation mark '!'.
    3. Login to Stdsun. Double click on the Stdsun shortcut on your Windows desktop. For new accounts the Unix password is last four digits of your OSU ID number, first letter of first name, first letter of last name (as your name appears on the university roster). No exclamation mark here!
    4. If you have NOT used this account for one of 221/222/321 before, set up your environment by typing the command /class/sce/bin/getsetup in a terminal window, and log out. If you already had a permanent account when you took the last class in the sequence, you should not have to do anything to set up your account.
    5. Let your partner set up his/her account (if necessary).

  3. Determining Your 321 Project Group:
    1. In a terminal window type the command groups.
    2. You should see (among other things) something like "c321axnn" where x is your section letter (e.g., 'a', 'b', 'c', …) and nn is your team number (a two digit number). That's your group for the quarter and your group's project directory (where you will do all your lab and closed lab work) is /project/c321axnn.

  4. Closed Lab Set Up:
    1. Copy the closed lab #1 course catalog to your group project directory (/project/c321axnn, where "x" is your section letter and "nn" is your team number):
      cp -r /class/sce/now/321/closed-labs/catalogs/closed-lab1 /project/c321axnn
      
    2. Make sure that the new catalog will be accessible to your partner. Perform this action now and as your last act whenever you finish a working session. Note that 'l' in the chmod command is the letter 'l' ("el"), as in "lock":
      cd /project/c321axnn/closed-lab1
      
      chmod -R g-l,g+rwX .
      
      set-group-ID .
      

  5. Implement the Sorting_Machine: Fill in all the indicated sections in the Sorting_Machine_Kernel_3 component.
  6. Compile and Test: Do a Build Project for CL1_Test_Driver.cpp. Once all syntax errors are corrected, run the test driver using the command CL1_Test_Driver < 10.txt > 10.txt.out in an xterm window. This runs the test driver on a data file 10.txt containg 10 text strings and places the results in the file 10.txt.out. In the xterm window enter the command less 10.txt.out to see the results. Proceed in a similar way for the test files 0.txt, 1.txt, 50.txt, 200.txt, and 500.txt
  7. 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.