Write a C Program to Find Grade of a Student Using Switch Case, The user needs to enter the subject number and the program must return the Grade of the subject based on the number. If a student enters the number between 90 to 100 then our program must return the Grade A or Excellent, similarly for other ranges numbers. To get the help I have a Number to grade conversion table this may help you to find the proper logic and roadmap for our program to Calculate Grade Using Switch Statement in C.
Logic: Calculate Grade Using Switch Statement in C
Logic is very simple to Calculate Grade Using Switch Statement in C. Taking input from the user(Input should be between range given 0 to 100 Else program play with you), as we know that grading system so divides the Mark by 10 and put the case condition in program See the below Explanation Step by step for better understanding.
Number to Grade Conversion Table
Below is the number to Grade Conversion Table helps us to implements logic for C Program to Find Grade of a Student Using Switch Case.
Output:
Enter The Marks Between 0 To 100:
Enter The Mark: 95
Your Grade is: A
need an explanation for this answer? contact us directly to get an explanation for this answer