Question: Write a program to calculate the current semester's grade point average and the cumulative grade point average of a student. The program should use an

 Write a program to calculate the current semester's grade point average

Write a program to calculate the current semester's grade point average and the cumulative grade point average of a student. The program should use an input data file to: 1. read the student's six-digit identification number (id), his/her old grade point average (ogpa), and the old number of course credits (occ) 2. read the course credits (c1, c2, c3, c4) and grades (g1, g2, g3, g4) for each of four courses 3. compute: old number of honor points = ohp = occ times ogpa new number of honor points = nhp = c1 times g1 + c2 times g2 + c3 times g3 + c4 times g4 total number of new course credits = ncc = c1 + c2 + c3 + c4 current GPA = cur_gpa = nhpcc cumulative GPA = cum_gpa = (nhp + ohp)/(ncc + occ) The input data file should be created such that id, ogpa, and occ are placed on the first line, c1, c2, c3, and c4 are listed on the second line, and g1, g2, g3, and are listed on the third line: as an example, the input file could contain the following data: All outputs should be written to an output file which has a format exactly like the following

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!