I have a homework assignment where I have to write a program that asks the user how many students to process, then reads in the scores for two items (an exam score and a lab average) for that many students, then calculates and displays a table of the students' grade information.
The part of the program that I'm having trouble with is where I have a function that receives two arrays of scores and then adds them together (calculatePointGrades). I think maybe the problem is that I can't figure out how to get the arrays from the functions getExamScores and getLabScores to the function calculatePointGrades. The values dont carry over like i want them too.
In your Calculation function you reinitialize the arrays back to 100 cells of 0s. Take them out there and in the other functions and just put them in the top, so they are constants.
The other guy i right too, I just thought it be best to make as little change to your program as possible.