Question: Code in Visual Studio Code 2017. Use beginner C++ skills. Write a program to calculate the current semester's grade point average and the cumulative grade

Code in Visual Studio Code 2017. Use beginner C++ skills.

Code in Visual Studio Code 2017. Use beginner C++ skills. Write a

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 (), and the old number of course credits (occ) 2. read the course credits (cl, c2, c3, c4) and grades (gl, g2, g3, g4) for each of four courses 3. compute: old number of honor points-ohp-occ x ogpa new number of honor points-nhp-clxgl + c2xg2+c3xg3 + c4 x g4 total number of new course creditsncc-cl +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, cl, c2, c3, and c4 are listed on the second line, and gl, g2, g3, and g4 are listed on the third line; as an example, the input file could contain the following data 24 4 213141 3.2 4 4 4 All outputs should be written to an output file which has a format exactly like the following Student ID number 213141 Previous semesters' credit Previous semesters' GPA GPA of current semester Cumulative GPA: Total credits completed 24 3.2 3.7 38

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!