>> but I need to call the names and test scores from main to calculateAverage right?
Do you mean you need to send the names and test scores to calculateAverage? You do need to send the test scores, but the name isn't needed by calculateAverage.