CS 115 Lab 7, Spring 2015


Deadlines

Goals

Upon successful completion of this lab, you should be able to understand and write programs using strings and lists of strings.

Pre-Lab Assignment

Click here for the pre-lab instructions.

Even if you didn't get to the pre-lab by the deadline, you should work through it before proceeding with the rest of the lab. A PDF of the pre-lab is available on Moodle.


Setup

  1. Before you start writing code, you will set up a directory for this assignment on the cwolf server. To connect to cwolf, do one of the following:
  2. Enter your CS 115 subdirectory by typing
    cd cs115
  3. Type pwd (print working directory) and verify that the output is:
    /home/student/yourusername/cs115
  4. Create a directory for Lab 7 by typing
    mkdir lab07
  5. Enter your Lab 7 directory by typing
    cd lab07
  6. Type pwd again, and verify that the output is:
    /home/student/yourusername/cs115/lab07
  7. Decide whether you want to work directly on cwolf ([remote]) or work on IDLE at your local computer ([local]), and follow the relevant instructions for the rest of the lab.

Lab Instructions

Follow the links below to complete each part of this lab.

  1. Find $1.00 words
  2. Find the average word length in multi-line text
  3. Submit your assignment