Hello, I'm new to C++ and programming and I must create the following program:
it must be able to tell which number is the lowest, which is the highest (best and worst grade) and what's the average value from an undefined number of values that the user enters. I must do this as a function with a For loop though and not inside the int main (). Here's what I've tried to do so far. What do I need to change to make it work? Any help is greatly appreciated.
On line 59 you seek to calculate worst grade with the data you have previously input on line ... err ...
On line 60 you again seek to calculate worst grade with the data you previously input on ... oh hang it.
On line 61 you yet again seek to calculate worst grade with ... oh forget it.
And then on line 63 you decide to enter some data.
And when you have fixed the triplication of finding the worst grade with non-existent data, consider how the actual data gets transferred (or, at present, not transferred) between functions.