Professional Documents
Culture Documents
2. You are required to create a program which calculates if the average grade of a student is a
passing average grade or failing average grade. The user should enter a student’s grade in science,
mathematics, English, Social Studies and Physical Education.
To compute for the average grade of the students, the program should add all of the grades of the
student and it should be divided by the number of the student’s subjects. In our case, the
computation should be:
Average grade = (ScienceGrade + MathematicsGrade + EnglishGrade + SocialStudiesGrade +
PhysicalEducationGrade) / 5
An average grade is a passing average grade if the average grade is 75 or above. It is a failing
average grade if it is 74 or below.
Sample program output:
Welcome to NVSU!
Enter your grade in English: 75
Enter your grade in Social Studies: 80
Enter your grade in Physical Education: 71
Enter your grade in Mathematics: 87
Enter your grade in Science: 89
Your average grade is: 80.4
It is a passing average grade!