CS 151: Lab Exercises

Weekly Lab Exercises

Main course page

The lab exercises will be posted here weekly. The work in lab will lead into and be part of the week's project. Labs will also count significantly towards participation.

Lab Instructor Information

Prof. Bruce A. Maxwell
Office: Davis 112
Phone: 859-5854
AIM: brucemaxwell@mac.com

Office hours: Knock
M 10pm-late, R 7:30pm-late
Any time my door is open

Learning Goals

The learning goals for the lecture and lab are the same -- both are meant to work together to accomplish the goals for the course as a whole. They are:

  1. Students can read a simple program and correctly identify its behavior
  2. Students can convert a problem statement into a working program that solves the problem.
  3. Students understand abstraction and can break down a program into appropriate procedural and object-oriented components
  4. Students can generate an approximate model of computer memory and describe how an algorithm affects its contents.
  5. Students can communicate the result of their work and describe an algorithm.

Lab Exercise 1: Equipping yourself for the projects

Lab Exercise 2: Python, functions, and parameters

Lab Exercise 3: Loops, conditionals, and command-line arguments

Lab Exercise 4: Images

Lab Exercise 5: Lists

Lab Exercise 6: Animations

Lab Exercise 7: Grammars, Files and Interpreters

Lab Exercise 8: Classes

Lab Exercise 9: Dictionaries and Inheritance

Lab Exercise 10: Not Quite Straight Lines

Lab Exercise 11: 3D Turtle