Course Home | Homework | Lab Hours | Programming | Schedule & Lecture Notes | Submit

Saint Louis University

Computer Science 150
Introduction to Computer Science

Michael Goldwasser

Fall 2005

Dept. of Math & Computer Science

Programming Assignment 04

TV Favorites

Due: 8:00pm, Monday 17 October 2005


Contents:


Overview

The goal of this assignment is to add extra functionality to our previously defined Television class. In particular, we wish to add support for maintaining and manipulating a list of favorite channels.

Newly Introduced Techniques


Collaboration Policy

For this assignment you must work individually in regard to the design and implementation of your project.

Please make sure you adhere to the policies on academic integrity in this regard.


External Specifications

From the user's perspective, the state of the television should include a list of select channels which we refer to as favorites. Internally, the favorites list can easily be maintained as an instance variable of type list. Your redesigned television should support the following three additional behaviors:


Files You Will Need

We will provide you with our previously developed Television.py code. You may make your own personal copy of it by typing the following command from a terminal on turing:

cp /home/home0/goldwasser/lib/Television.py .


Software Engineering Practices

With this assignment, we would like to start enforcing two good practices in software engineering, namely documenting your work and testing your work. Python offers a conventional form of support for each of these efforts.


Submitting Your Assignment

In the end, you should submit two files: your modified version of Television.py and a readme text file briefly discussing your efforts.

Please see details regarding the submission process from the general programming web page, as well as a discussion of the late policy.


Grading Standards

You will be graded based upon the correctness of your added functionality regarding the favorites list, as well as on your documentation and testing of the new functionality.


Extra Credit

To be announced...


Michael Goldwasser
Last modified: Tuesday, 11 October 2005