CSC 270 - Survey of Programming Languages

Dr. R. M. Siegfried

Assignment #14 - Finding the Average of n non-negative numbers

Due Friday, November 17, 2017

Write a program that will ask the user for the number of values to be averaged. Then it will allow the user to enter that number of non-negative values. If the user enters a negative value, handle it by throwing an that displays in standard error the message "Negative Number Exception.

[Back to the Assignments List]