You will need to do this assignment on the department server
(cs.monm.edu
). Start early!
Start by creating a single C source file. You are going to write a program that lets the user input some integers, then outputs some statistics about them.
Your program needs to:
You may assume that the user always enters integers correctly (e.g., no floats or weird inputs). You should use dynamic memory to store the input numbers.
It might look something like this:
$ gcc -o nums nums.c
$ ./nums
How many integers? 5
> 1
> 3
> 42
> 7
> -1
You entered: 1,3,42,7,-1
Min: -1
Max: 42
Avg: 10.40
Sum: 52
We will submit using the handin
program using assignment “proj2”. For example:
handin comp235 proj2 nums.c