Question: [50 pts] Write a C++ program that reads the following student input data (student.dat) into an array of Student c-struct objects. Provide a function in

[50 pts] Write a C++ program that reads the following student input data (student.dat) into an array of Student c-struct objects. Provide a function in the program that can calculate the students final grade based on the following criteria: MidTer = 25%, Fina Exa = 25% and Labs = 50% The format of the file is as follows:

//STUDENT_NAME

// MIDTER_EXA FINA_EXA

//LAB1 LAB2 LAB3 LAB4

student.dat

Joe Doe

90.8 89.5

67 89.2 99.0 100.0

Susan F. Smith

95.5 94.0

78.5 90 87.5 57

Sam Grover

78 100.0

79.5 69.4 90.0 88.5

Diane C. Phelps 100 78.0

56.0 69 94.0 78

John Franklin

65 87.0

67.0 96 49.0 87

Derrick Myers

89.8 98.5

76 89.2 93.0 100.0

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!