Question: in simple c++ code please, the input file example is provided and so is the output example Question 2: (File I/O with vector of vectors)

in simple c++ code please, the input file example is provided and so is the output example

in simple c++ code please, the input file example is provided and

Question 2: (File I/O with vector of vectors) You have the following file format: 40854 60 71 59 50415 70 78 85 60634 98 98 99 Each line is consists of the following information: the student id (int), the grade for the first midterm, the grade for the second midterm and the grade for the final midterm and it represents one student. Assume all grades are out of 100 and of type int. Write a program to read the file and save the content in a vector of vectors of type double (vector>), in which each student is saved as a vector of doubles (vector), where each row is representing a student. And then print to the user the id and the average grade for every student. The average grade is 0.25*midl_grade + 0.25*mid2_grade+0.5*final_grade. Note: Your program should work with any number of students. A sample output is given below: C. C:\WINDOWS\system32\cmd.exe Student With ID [60634] Has an Average of : 98.5 Student With ID [50415] Has an Average of : 79.5 Student With ID [40854] Has an Average of : 62.25 Press any key to continue

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!