CSE 321 Closed Lab 7 Instructions

  1. Objectives: To implement a program, CountWords.cpp, to count and output word occurrences in a text read from standard input.
  2. Set Up: Each team should work together at one workstation.

    1. Copy the closed lab #7 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-lab7 /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-lab7
      
      chmod -R g-l,g+rwX .
      
      set-group-ID .
      

  3. Implement the Program: Fill in the skeleton in the file CountWords.cpp. In particular, you need to include any components you are using, instantiate any templates employed, and complete the body of the main program. If you are using any other global operations, you need to include header and body for each new operation. Note that a global procedure, Get_Next_Word, is already provided. 
  4. Compile and Test: Do a Build Project for CountWords.cpp. Once all syntax errors are corrected, run the test driver redirecting its input from a text file (for instance, you could use the source code of your program, CountWords.cpp, as input by using the command CountWords < CountWords.cpp). 
  5. Maintenance Activities: Now you'll get a chance to evaluate how good your design and implementation are ;-). You have to modify your program to accomodate each of the following changes. If any of the changes seems very tricky, you may have to go back and revisit some of your earlier decisions.
  6. Proctor Check-off: When you are satisfied that your implementation is working correctly and you have completed all mainatenance activities, raise your hand and one of the proctors will come check it. After being checked-off, you are finished with the closed lab.