0% found this document useful (0 votes)
9 views1 page

Python Grading System and CGPA Calculator

The document outlines a programming practical exercise for CSC 103, requiring students to write Python programs for various tasks, including calculating average scores, grading systems, and displaying a multiplication table. It also involves accepting student biodata and course scores, classifying grades, and computing the Cumulative Grade Point Average (CGPA). The exercise concludes with generating the class of degree based on the CGPA calculated.

Uploaded by

Saheed Akapo
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views1 page

Python Grading System and CGPA Calculator

The document outlines a programming practical exercise for CSC 103, requiring students to write Python programs for various tasks, including calculating average scores, grading systems, and displaying a multiplication table. It also involves accepting student biodata and course scores, classifying grades, and computing the Cumulative Grade Point Average (CGPA). The exercise concludes with generating the class of degree based on the CGPA calculated.

Uploaded by

Saheed Akapo
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Programming Practical Exercise

CSC 103 2022/2023 SESSION 2 hours

Write Python programs that perform the following:

1. Accept scores of 5 courses for a student and find the average score.
2. Print the grade and unit of a score course
Assuming score 40=0 grade=fail, 41-45= 1 grade= pass, 46-59=2 grade=
average, 60-79=3 grade= good, > 79 = 4 grade= Excellent
3. Display multiplication table 12X12
4. Use a switch statement to show the grading system of scores in WAEC.

Write a program that accepts student biodata: names, ages, sex and addresses. You should
also do the following:

1. Accept n number of courses and their scores for each student


2. Assign appropriate units to each of the courses entered.
3. Classify the scores according to the table below

Letter Point Mark %


Grade
A 4 70 – 100
B 3 60 – 69
C 2 50 – 59
D 1 45 – 49
E 0 0 – 44
Grade Point per course (GP) = unit*point

Total Weighted Grade Point (TWGP) = ∑GP

Total Number of Units (TNU)= ∑units

Computation of Cumulative Grade Point Average (CGPA) In order to obtain the Cumulative
Grade Point Average (CGPA) of a student = TWGP/TU

The value of CGPA shall be expressed correctly in two decimal places.

Cumulative Grade Point Class of Degree


Average
3.5 – 4.00 First
3.0 – 3.49 Second Class
Upper
2.0 -2.99 Second Class
Lower
1.0 – 1.99 Third Class
<1.0 Fail
Finally, generate the class.

{Dr. B. I. Ayinla, 16 February, 2024}

You might also like