You are on page 1of 1

COMPUTE GRADE PROGRAM

Create a function named StudeInfo that will accept the following values from the user:
StudentID, StudentName, Course, Age, PrelimGrade, MidtermGrade, FinalTermGrade.

Create a function named ComputeGrade that will compute Final Average which is computed as the sum
of PrelimGrade, MidtermGrade and FinalTermGrade divided by 3.

Display the output with the following format: (sample output)

*************************************************************************************

Student ID : 00-00-01

Student Name : FERNAN W. AMMAQUI

____________________________________________________________________________________

PRELIM GRADE : 90.0

MIDTERM GRADE : 90.0

FINAL GRADE : 90.0

AVERAGE : 90.0

*************************************************************************************

Color the Student ID and Name values with green. Failing average will be colored with red. Otherwise,
color it with blue.

You might also like