COSC 1320 - C++ Programming and
ITSE 1307 - Introduction to C++ Programming
Bob Comer, Professor of Computer Studies


Assignment 1 - I/O, Sums and Products

Read through Chapter 3 in your textbook before starting this assignment.

Write a C++ program that reads 3 integer values from the keyboard (be sure to print a prompt message for the user). Then calculate and print on the screen the sum, average, and product of the three numbers (be sure to include identifying labels with your output). The screen dialog should look similar to this (user input is shown in bold):

Enter three integer values: 13 27 14
Sum is 54
Average is 18
Product is 4914


Return to C++ Home Page

Copyright: Ó2005 by the Austin Community College
Department of Computer Studies. All rights reserved.
Comments to:
Bob Comer
Last updated: August 25, 2005