Question: c++ repl.it only Create a program that can read in a file of a student and their grades and give their weighted and unweighted GPA.

c++

repl.it only

Create a program that can read in a file of a student and their grades and give their weighted and unweighted GPA.

For an unweighted GPA, an A will be worth 4 points, a B worth 3 points, a C worth 2 points, and a D worth 1 point....an F will be worth 0 points.

For a weighted GPA, for passing grades, Honors classes will be given 1 additional point, and Advanced Placement Classes will be given 2 additional points.

The output should output the student's name, their unweighted GPA, and their weighted GPA.

Also multiple students.

Students will be separated by "ENDOFSTUDENTRECORD".

An example of an input is included here (Your filename should be "student.csv"):

John Smith

Algebra I Honors, Honors, 1, C

English 9, Regular, 1, A

Biology Honors, Honors, 1, B

AP Human Geography, Advanced Placement, 1, A

Health & PE 9, Regular, 1, A

Digital Applications, Regular, 1, C

Beginning Band, Regular, 1, D

Video Gaming, Regular, 1, F

ENDOFSTUDENTRECORD

Calculator Johnson

Algebra II Honors, Honors, 1, A

English 9 Honors, Honors, 1, A

Biology Honors, Honors, 1, B

AP Human Geography, Advanced Placement, 1, A

Health & PE 9, Regular, 1, A

Dual Enrollment Calculus, Advanced Placement, 2, A

ENDOFSTUDENTRECORD

The output will be as an example:

John Smith

Unweighted GPA: 2.5

Weighted GPA: 3

Joey Wheeler

Unweighted GPA: 3.1000

Weighted GPA: 3.8421

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!