CS110 Introduction to Computer Science

Fall 1998

Programming Project #1

Due in class on Tuesday, September 15, 1998.

Write C++ programs to solve Exercises 4 & 5 from Chapter 2 of Kamin & Reingold (page 42).

Create a separate project for each exercise.

What to Hand in:

For each Exercise, you will hand in the following:

  1. A problem definition form (see below for the format)
  2. A printout of your C++ program file.
  3. A printout of your project window (select the project window and choose Print from File menu to get this).
  4. At least two sample runs on different inputs.

Additionally, write a short paragraph/essay on your experiences in working on this assignment.


Sample Problem Definition Form

Problem: State the problem here.

Inputs: Identify the inputs to the program

Outputs: Specify the output of the program

Algorithm: Show the main steps of the algorithm that solves the problem.


Each C++ program should have the following:

// Program Name: <The name of your C++ program file>
// Programmer: <Your name here>
// Address: <your e-mail and Campus Address here>
// Assignment Number: <put project number here, e.g. Project#1, Part A>
// Purpose: <A short problem description>


Back to CS110 Page