CS110 Introduction to Computer Science

Spring 2000

Programming Project #1

Due in class on Thursday, February 3, 2000.

Write a C++ program to solve Exercise 1.26 (page 51) from Deitel & Deitel, which is restated here:

Write a C++ program that inputs three integers from the keyboard, and prints the sum, average, product, smallest, and largest of these numbers. The screen dialog should appear as follows:

	Input three different integers: 13 27 14
	Sum is 54
	Average is 18
	Product is 4914
	Smallest is 13
	Largest is 27

What to Hand in:

Hand in the following:

  1. A printout of your C++ program file.
  2. A printout of your project window (select the project window and choose Print from File menu to get this).
  3. At least two sample runs on different inputs. For one set, use the sample provided in the book.

Additionally, write a short paragraph/essay on your experiences in working on this assignment. Please staple all the pages together.


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