CS 115 Lab 3, Spring 2015


Deadlines

Goals

Upon successful completion of this lab, you should be able to write and edit Python programs that use:

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.


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 3 by typing
    mkdir lab03
  5. Enter your Lab 3 directory by typing
    cd lab03
  6. Type pwd again, and verify that the output is:
    /home/student/yourusername/cs115/lab03
  7. For now, close Terminal or PuTTY. You will do most of this lab in IDLE.

Lab Instructions

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

  1. Sum a list of numbers
  2. Draw arbitrary circles
  3. Draw a stack of circles
  4. Draw a stack of circles using a for-loop
  5. Draw a square of circles
  6. Submit the assignment