Question

Miss Wandiba is class teacher at Jitambue Secondary school at Ulanga district. He is used to have monthly examination on 28th of every month. In this digital era, he wants a simple computer program that will be able to store permanently and display the report of her students. For each student, the report will have the following information: all scores, total scores, average score, and GPA. The student must attempt a minimum of 7 examinations to have a complete report. The student can either sit for 7, 8, or 9 examinations. Suppose that the class has 50 students, write a C++ program that will:

a. Accept scores of all students and store them into array name scoredmark. The array should dynamic to support any entered within the range of 7size9.

b. Calculate sum and average, and find the grade from average marks.

c. For each student, the program should store sum, average score, and GPA into a file name report.txt.

d. Display data from report.txt on a screen.