c++ 1) Define a Record Data Structure for student grade records for data stored in file: StudentData.txt
Question:
c++
1) Define a Record Data Structure for student grade records
for data stored in file: "StudentData.txt" with additional
fields for average exam score and grade.
2) Declare an array of records.
3) Populate from the Data Structure in the file:
“StudentData.txt”.
4) Define a function to display student records (formatted).
5) Define a function to compute average and
populate average field.
6) Define a function to compute the grade and
populate grade field.
7) Define a function to compute class average.
8) Define a function to compute class standard deviation.
9) Display class average and standard deviation.
10) Demonstrate ALL functions.
//StudentData.txt
//Student grade records are stored in a parallel-arrays Data Structure:
const int NG = 4;
string names[] = {"Amy Adams", "Bob Barr", "Carla Carr",
"Dan Dobbs", "Elena Evans"
};
int exams[][NG]= { {98,87,93,88},
{78,86,82,91},
{66,71,85,94},
{72,63,77,69},
{91,83,76,60}
};
Fundamentals of Database Systems
ISBN: 978-0136086208
6th edition
Authors: Ramez Elmasri, Shamkant Navathe