Im writiing a program that will load in a outside txt file of exams results for candidates in the form
Name rslt1 rslt2 reslt 3 rslt 4
with there being up to 40 candidates and a min of 4.
program then must calculate mean score for exm standard deviation for each exm , and each candidates avrg, eg
Exm1 exm2 ex3 Exm4 Avrg
Name rslt rslt rslt rslt avrg rslt
name " " " " "
Mean eavrg eavrg eavrg eavrg
S.D Esd esd esd esd.
im thinking of creating a structure for putting each candidates reuslts in and then making a array of structures. But im not sure how to make this work for a variable number of candidates and how to also display the above table. im guessing by making my arary of structs bigger to add on the avrgs and assging a value for the avrgs to part of the array?
Any suggestions would be greatly apprciated