| mwingard (8) | |||
|
Here's what I have to do: a) Prompt the user to enter numerical grades of students in a test, one at a time, and store it in an array. This is accomplished in the main module. The user enters a negative number to indicate all the grades are entered. The program will keep the count of the number of grades entered. b) Call function to calculate the average grade of the class, the median, and the lowest and highest grades. c) Finally display the class average, highest grade, the lowest grade, and the median at the bottom. At the end the user is prompted to exit or enter grades for another class. And here's my program:
So where did I go wrong first? I'm lost. | |||
|
Last edited on
|
|||
| groovydudeyo (4) | |
|
gah. Global variables. Not the global variables... | |
|
|
|
| mwingard (8) | |
| Go easy on me...I'm just a beginner. So when I changed some of the variables to local, I got an error message "error C2082: redefinition of formal parameter." What do I need to do to make this work??? It's due tonight at midnight CST and I'm so frustrated. Any help would be much appreciated! | |
|
|
|
| James2250 (245) | |
| First of all can you please use code tags [ Code] [ /Code] around everything so that it indents correctly. It's very hard to see what's happening with all the braces on the left side. | |
|
|
|
| mwingard (8) | |
| Ok I fixed it. Sorry. Not sure if you can tell, but I have no idea how bubbleSort works(lines 19-29). I'd like to learn though. | |
|
Last edited on
|
|