Question: Which among the following code snippets can be used to calculate the average marks of a student in 5 subjects, and give grades according to

Which among the following code snippets can be used to calculate the average marks of a student in 5 subjects, and give grades according to the following rules:
If average >90, then Grade = A
If average >80, then Grade = B
If average >70, then Grade = C
If average >60, then Grade = D
If average >50, then Grade = E

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!