Create a program that calcuates the average of three test scores. The program should contain three value-returning functions: main, getTestScore, and calcAverage. The main function should call the getTestScore function to get and return each of three test scores. The test scores may contain a decimal place. The main function then should call the calcAverage function to calculate and return the average of the three test scores. When the calcAverage function has completed its task, the main function should display the average on the screen.
i know the problem is in the double calcAverage( ) but just dont know exactly what.
I think he means you have the arithmatic right in the function description using averageScore and testScores as variables, but in the main{ program code here } you call the function calcAverage(withoutInserting, otherVariables) into those locations. That is, the variables you want to be passed to the function, dealt with, and returned with the result
As vin already pointed out, you told the compiler that calcAverage() takes two arguments (values you pass to the function when you invoke (call) it). However, when you call the function, you don't give it anything; therefore, the compiler gives you an error.