Question: Please help me write a C++ program that can calculate GPA and CGPA with an output like the picture shown below. The input is based

Please help me write a C++ program that can calculate GPA and CGPA with an output like the picture shown below.

The input is based on grade and credit. The question requires to code based on question and put the output in command and text file. The cgpa and gpa calculation can find in google, just normal gpa and cgpa calculation will do. Thank you!

Please help me write a C++ program that can calculate GPA and

This is the code that I have tried:

#include #include using namespace std; struct subject { string name; string grade; string studentid; double TotalMark; int credits; int num; int choice; double value; double CreditsSum; double TotalSum; double GPA; }; subject s; subject s1; subject s2; subject s3; subject s4; subject s5; string identify_grade(double totalMark) { if (totalMark >= 90 && totalMark = 80 && totalMark = 75 && totalMark = 70 && totalMark = 65 && totalMark = 60 && totalMark = 55 && totalMark = 50 && totalMark = 47 && totalMark = 44 && totalMark = 40 && totalMark = 30 && totalMark = 0 && totalMark = 90 && totalMark = 80 && totalMark = 75 && totalMark = 70 && totalMark = 65 && totalMark = 60 && totalMark = 55 && totalMark = 50 && totalMark = 47 && totalMark = 44 && totalMark = 40 && totalMark = 30 && totalMark = 0 && totalMark

///for calculation gpa i use (total pointer x total credit hour) / total credit hour

Examination result No Course Code Description Credit Grade Grade Point A+ 1 2 3 4 5 STE 1034 STE1044 STE 1032 STE1054 STI1234 GEOGARAPHY MATHEMATIC SCIENCE ENGLISH LITERATURE SOCIAL STUDIES 3 3 4 3 2 A- A- A B 12 11.1 14.8 12 6 GPA CGPA : 3.73 : 3.59

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!