1. Start
2. Initialize variables: mark1, mark2, mark3, total, percentage, grade
3. Input marks for three subjects: mark1, mark2, mark3
4. Calculate the total marks: total = mark1 + mark2 + mark3
5. Calculate the percentage: percentage = (total / 300) * 100
6. Check the grade based on the percentage:
- If percentage is greater than or equal to 90, set grade to "A+"
- If percentage is greater than or equal to 80, set grade to "A"
- If percentage is greater than or equal to 70, set grade to "B"
- If percentage is greater than or equal to 60, set grade to "C"
- If percentage is less than 60, set grade to "Fail"
7. Display the total marks, percentage, and grade to the user
8. End
algorithm to calculate the total and percentage of marks of 3 subjects and display the total, percentage and grade
1 answer