Question: I cant figure out this on C + + Given an integer N , which represents aggregate of marks obtained by a student, find the

I cant figure out this on C++
Given an integer N, which represents aggregate of marks obtained by a student, find the grade according to the marks obtained(Use Ladder if-else).
if 90<= N, grade obtained is 'A'.
if 60<= N <=89, grade obtained is 'B'.
if 30<= N <=59, grade obtained is 'C'.
if N <30, grade obtained is 'D'.
Example Input: 35
where:
First line represents the aggregate of marks obtained by the students.
Output:
C
As the aggregate of the marks lie in the range 30<= N <=59, grade obtained is 'C'.
Value of N can be in the range 0 to 100.

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!