Вы находитесь на странице: 1из 2

PAC

Input MatricNum, NumOfSemester, NumOfCourses[i], CodeSubject[i][j], Credit[i][j], Marks[i][j] Processing if (totalMarks >= 80) point = 4.00 else if (totalMarks >= 75) point = 3.75 else if (totalMarks >= 70) point = 3.50 else if (totalMarks >= 65) point = 3.00 else if (totalMarks >= 60) point = 2.75 else if (totalMarks >= 55) point = 2.50 else if (totalMarks >= 50) point = 2.00 else if (totalMarks >= 47) point = 1.75 else if (totalMarks >= 44) point = 1.50 else if (totalMarks >= 40) point = 1.00 else point = 0.00 if (totalMarks >= 80) return "A" else if (totalMarks >= 75) return "A-" else if (totalMarks >= 70) return "B+" else if (totalMarks >= 65) return "B" else if (totalMarks >= 60) return "B-" else if (totalMarks >= 55) return "C+" else if (totalMarks >= 50) return "C" else if (totalMarks >= 47) return "C-" else if (totalMarks >= 44) Output MatricNum, Total Credit Taken, Total Point Earned, Grade Point Average, Cumulative Grade Point Average, Grade, Point Earned, Subject, Credit, Marks

return "D+" else if (totalMarks >= 40) return "D" else return "F" Grade[i][j] = determineGrade(Marks[i][j]) GradePoint = determineGradePoint(Marks[i][j]) TotalCredit[i] += Credit[i][j] PointEarned[i][j] = (GradePoint * Credit[i][j]) TotalPointEarned[i] += PointEarned[i][j] GradePointAverage[i] = TotalPointEarned[i] / TotalCredit[i] SumOfTotalPointEarned += TotalPointEarned[k] SumOfTotalCredit += TotalCredit[k] CGPA[i] = SumOfTotalPointEarned / SumOfTotalCredit