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

Saint Louis University

Computer Science 180
Data Structures

Michael Goldwasser

Spring 2006

Dept. of Math & Computer Science

Homework Assignment 01

Television debugging

Contents:


Overview

Our goal of this homework is to review some of the syntactic issues of object-oriented programming in C++. We will use our 'walkthrough' explanation of the CreditCard example as the reading for this assignment, though with Ch. 1 for supporting details.

Topic: Television debugging
Related Reading: 'walkthrough' notes and Ch. 1
Due: Friday, 27 January 2006, 1:10pm

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


Practice Problems


Problems to be Submitted (20 points)

For this homework, we have create an almost perfect implementation of a Television clas to model a typical television interface. Do not concern yourself with the chosen semantics for the model, however there are five distinct syntactical problems with this code. Your goal is to clearly identify the location and cause of those five unrelated problems, and to explain succinctly how to remedy the problems. Please be clear in distinguishing the five problems and remedies, and identify precisely which lines of which files would need to be modified for each.

You should be turning in a hardcopy of your assignment; it can be handwritten or typed. You are more than welcome to complete the assignment purely based upon a visual examination of the original source code, if the bugs are evident to you. But we expect that the real way to tackle this assignment will be to get a hold of the files for yourself, try to compile and debug the original code, seeing if the compiler error messages can help point you to the problems.

The original sourcecode can be viewed on this web page. Alternatively, all of the files are located on turing. You may make a copy of the entire project, placing into your own working directory, by executing the following.

cp -R ~goldwasser/180/homeworks/Television .
We have included a makefile, so that an executable can be built by typing make at the command prompt.


Extra Credit

None this time...
Michael Goldwasser
CSCI 180, Spring 2006
Last modified: Monday, 23 January 2006
Course Home | Homework | Programming | Schedule & Lecture Notes | Submit