Question: 2. Given the following text file data2.txt, and declarations const int N=5; Martin-Smith 22 2.2 Austin-Clinton 18 3.1 Johnson 19 2.9 Maggie-Jones 23 2.3 Tyler-Brown

 2. Given the following text file "data2.txt", and declarations const int
N=5; Martin-Smith 22 2.2 Austin-Clinton 18 3.1 Johnson 19 2.9 Maggie-Jones 23

2. Given the following text file "data2.txt", and declarations const int N=5; Martin-Smith 22 2.2 Austin-Clinton 18 3.1 Johnson 19 2.9 Maggie-Jones 23 2.3 Tyler-Brown 16 3.4 struct RECORD string Name; int Age; float Gpa RECORD plN l; float GpaAve; a. b. c. Read data from the file into array p, CopyRecords("data2.txt",p): Display all records Compute their age and GPA average: Display(p) AgeGpaAverage( p, AgeAve, GpaAve); Display(AgeAve, GpaAve); d. Display both averages

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!