I have to make a program that read this :
(name) (test1..2..3...etc)
Johnson 85 83 77 91 76
Aniston 80 90 95 93 48
Cooper 78 91 11 90 73
Gupta 92 83 30 69 87
Blair 23 45 96 38 59
Clark 60 85 45 39 67
Kennedy 77 31 52 74 83
Bronson 93 94 89 77 97
Sunny 79 85 28 93 82
Smith 85 72 49 75 63
from a file and then make an output file that has 8 column that include the name, each test, average of the tests and then the letter grade.
The problem requires a void function used for calculating the average and a value function for the letter grade.
I know how to do this without the functions, but im in a knot when I have to use functions.
I was thinking if in the calculating average function to assign the average of each line to a separate variable and use a while loop to do that. I am not sure if that is an effiecent way to do that. Ill post up the code once try it out. But for now, can anoyone tell how they would a approach this problem?