Could anybody help me how to find an average of numbers in a data structure of student record with fields name, surname,age etc | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Could anybody help me how to find an average of numbers in a data structure of student record with fields name, surname,age etc

22nd Apr 2020, 1:06 PM
Amy
3 Answers
+ 5
Also gives us please a sample of your input data and the desired output.
22nd Apr 2020, 2:16 PM
Lothar
Lothar - avatar
0
type student=record; name:string [25]; surname:string [25]; age:integer; gender:char; marks:array[1..6] of record: subject:string [20]; mark:integer; end; list=record; element:array [1...100] of student last:integer; end;
22nd Apr 2020, 5:01 PM
Amy
0
I have to display: 1.Student(L.list,gender:char) 2.Average(L.list) 3.MaxAverage(L.list)
22nd Apr 2020, 5:03 PM
Amy