Question
C++ programming language RECORD STRUCTURES //StudentData.txt //Student grade records are stored in a parallel-arrays Data Structure: const int NG = 4; string names[] = {Amy
C++ programming language
RECORD STRUCTURES
//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} };
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.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started