You are on page 1of 1

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