Write a C program to find the grace marks for a student using switch. The user should enter the class…