Forums: » Register « |  Free Tools |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support |

New Free Tools on Dev Shed!

#1
December 27th, 2012, 07:23 AM
 mekansiz5534
Registered User

Join Date: Dec 2012
Posts: 1
Time spent in forums: 2 m
Reputation Power: 0
CGPA and GPA

Design and implement a python program that will compute the CGPA and GPA for the courses a student has taken throughout all semesters.

Can you help me?

This program for Python.

#2
December 27th, 2012, 08:52 AM
 StevenJM
Registered User

Join Date: Dec 2012
Posts: 12
Time spent in forums: 3 h 51 m 27 sec
Reputation Power: 0
There are two things I'd need to know to even begin to help you.

1. What code have you created so far?
2. What's the formula for GPA and CGPA?
b49P23TIvg agrees: Not that you need my agreement, but this is a chance to give you a reputation point.

#3
December 29th, 2012, 02:04 PM
Registered User

Join Date: Dec 2012
Posts: 1
Time spent in forums: 31 m 26 sec
Reputation Power: 0
Quote:
 Originally Posted by StevenJM There are two things I'd need to know to even begin to help you. 1. What code have you created so far? 2. What's the formula for GPA and CGPA?

• A semester Grade Point Average will be computed for each semester. The SGPA will be calculated as follows:

n

Σ Ci x GPi
SGPA = -----------------

n

Σ Ci

where Ci = Credit for the course. GPi = the Grade Point obtained for the course and the summation over all the courses taken in that semester and n is the number of subjects registered for the semester.

A Cumulative Grade Point Average (CGPA) will be computed for every student at the end of each semester. The CGPA would give the cumulative performance of a student from the first semester upto the end of the semester to which it refers and calculated as follows.

m

Σ Si X Ci
CGPA = -----------------

m

Σ Ci

#4
December 29th, 2012, 02:31 PM
 b49P23TIvg
Contributing User

Join Date: Aug 2011
Posts: 4,186
Time spent in forums: 1 Month 3 Weeks 2 Days 12 h 59 m 52 sec
Reputation Power: 455
Σ Si X Ci
is a dot product. numpy is good for dot products. Hope this helps!
__________________
[code]Code tags[/code] are essential for python code!

 Viewing: Dev Shed Forums > Programming Languages > Python Programming > CGPA and GPA