GPA Calculation Program for Students Based on Final Grades
Development of a GPA calculation tool using student academic records.
Mia Martinez
Contributor
4.1
58
5 months ago
Preview (2 of 4 Pages)
100%
Purchase to unlock
Page 1
Loading page image...
GPA Calculation Program for Students Based on Final GradesProgramDescription:We are making a programthat would allow a user to enter studentnames and Final grades (e.g. A,B,C,D,F) from their courses. we do notknow how many students need to beentered. we also do not know howmany courses each of the students completed. I am Designing myprogram to calculate the Grade Point Average (GPA) for each studentbased on each of their final grades. The program is output the Studentname along with the GPA.Analysis:We can make this program by simply calculating total score divide bytotal subjectsRequired Input:1 .Every student detail should be in one line and each student namemust end with semicolon(:)2.Grade of student has to bespecified after semicolon in any format.3.after all calculation type hyphen(-). That will work as end of data.Output:1.output of every student will print in new lineVariable names:1. Char s[]: that will take the input string.2. Char name[]: that will store the student name.3. total: storing the total score of student.4. totalsubjects: that will store the total subjects of student.Calculation and formulas:1.to calculate total score : total+=’E’-grade;2.to calculate average: total/totalsubjectsMy program will run until s[0] is not equal to hyphen(-). And we areusing the gets function to take information of student that take full lineas input so by this we can any number of subjects.
Page 2
Loading page image...
Preview Mode
This document has 4 pages. Sign in to access the full document!