Thread: CGPA and GPA

    #1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2012
    Posts
    1
    Rep 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. #2
  3. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2012
    Posts
    12
    Rep 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?

    Comments on this post

    • b49P23TIvg agrees : Not that you need my agreement, but this is a chance to give you a reputation point.
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2012
    Posts
    1
    Rep Power
    0
    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
  6. #4
  7. Contributing User
    Devshed Demi-God (4500 - 4999 posts)

    Join Date
    Aug 2011
    Posts
    4,837
    Rep Power
    480
    Σ 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 and Makefiles!

IMN logo majestic logo threadwatch logo seochat tools logo