Image

Hi, I'm new, etc.

If I'm breaking any rules by asking for help in this respect, then you can delete this entry and warn me. I'm just going to ask because I'm desperate and running out of time. We're doing a program in my C-programming class and I'm completely stuck and dumbfounded. I've worked for like 10 hours trying to figure this crap out.

Basically we're to design a program that obtains a value between 2 and 10. This is the number of values that the program will acquire from the user. The user enters that number of values, then the program computes the sum, average, maximum, and minimum on that number of numbers, and states the number of numbers it calculated.

It took me a long time just to make the program do the sum and average. Here is the code for what I've done so far:
code
The program works fine except that I have not the slightest clue of how to go about obtaining the maximum and minimum values entered. Someone suggested that I use arrays, but not only do I think that won't work, but it says in the directions:
"Note that most of the summary information must be derived/calculated as the values are being read. Except for the average value, all summary information will be known once the last value has been read and processed. "

So I'm completely clueless. If you can stop laughing long enough to help me, or just to give me a few pointers, I'd appreciate it a lot.