This code tells if a student will graduate or needs to study more.
The user is first asked to enter the student’s year:
Then, it asks for the studen’s GPA:
For years 1 to 3, all GPAs will say that the student needs more schooling:
A 4th year student with a GPA of 1 will also say that more schooling is needed:
GPAs 2 to 4 will graduate the student: