Pr. Cogan                                                                   Assignment #24

CIS 16,  Fall 2001                                                                  Due Date:

 

 

·        Write a complete program that calls a function to calculate and return the maximum and the average of its command line arguments. 

 

·        Have main print: the array, the maximum, and the average.

 

 

Sample Output:

 

Array: 5  4  6  3  7  -1

Max:  7

Average:  4

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Don’t forget to comment your program and include the following:

/* Your Name

 * Class and Section

 * Assignment #_________

 * Date Due_____________

 * Date Submitted________

 */