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

Write a C++ program to Show grades with marks percentage.

### Example Output #1

Enter total marks obtained:
85

### Example Output #2

Enter total marks obtained:
95

### Example Output #3

Enter total marks obtained:
70

### Example Output #4

Enter total marks obtained:
60

### Example Output #5

Enter total marks obtained:
45

### Example Output #6

Enter total marks obtained:
30

## Example#2

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

Output

## SFT (Shamil’s Flow Table )

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

T

## 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’