C++ program to percentage of marks and show grade using the switch statements

Let us see the C++ program to Calculate the percentage of marks and show grade using the switch statements. Percentage >= 90% : Grade A
Percentage >= 80% : Grade B
Percentage >= 70% : Grade C
Percentage >= 60% : Grade D
Percentage >= 40% : Grade E
Percentage < 40% : Grade F

Flowchart of the program to Calculate the percentage of marks and show the grade

 

C++ program to Calculate the percentage of marks and show grade

Program in C++ to Calculate the percentage of marks and show the grade

Output

C++ program to show the grade

SFT (Shamil’s Flow Table )

Are you interested to Read about SFT(Shamil’s Flow Table)?

demo of c++ program to show the grade

C++ program to show grade after marks

C++ Program to input marks of subjects and show percentage, and grade without a switch statement

write-a-c-program-to-display-grade-of-a-student-using-if-else-statement-1

grade program c++T

Click Here Read More about this Shamil’s Memory Table of grade program

C++ program to find percentage of marks and show grade using if else statements

Output

Enter the marks of four subjects::
50
60
60
50

The Total_Marks marks = 220/400
The Average_Marks marks = 55
The Percentage = 55%
The Grade = ‘E’

——————————–

C++ program to find percentage of marks and show grade using Nested if else statements

Output

Enter the marks of four subjects::
40
40
60
60

The Total_Marks marks = 200/400
The Average_Marks marks = 50
The Percentage = 50%
The Student_Grade = ‘E’

——————————–

C++ program to find percentage of marks and show grade using User define function

Output

Enter the marks of four subjects::
40
40
60
60

The Total_Marks marks = 200/400
The Average_Marks marks = 50
The Percentage = 50%
The Student_Grade = ‘E’