CSC 270
Homework 1
Assigned Sept. 13, due Sept. 18
Write a C++ program that reads in three double numbers,
prints their sum and average (appropriately labelled), and prints out how
many of them are positive. For example, if the input were
3.7 5.2 -4.7
the output might be
Sum: 4.2
Average: 1.4
2 of your 3 numbers are positive.
Also turn in sample runs with well-chosen test cases.
Last modified:
Stephen Bloch / sbloch@adelphi.edu