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.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
Get step-by-step solutions from verified subject matter experts
