CIS 2003 - Introduction to C++ and C
Programming
Bob Comer, Professor, CIS/CSC
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 |
Copyright: Ó2003
by the Austin Community College
Department of Computer Studies. All rights reserved.
Comments to: Bob Comer
Last updated: January 10, 2003