program using if else if

hello
can you please help me and wright this prog

using if else if write a program that prompts to enter three integers and grades.
all the integers according to the following :

50-59=D
60-69=C
70-79=B
80-84=B+
86-89=A
>=90 =A+
And what do you have so far?
i do not have anything
so.........
I agree on shacktar.First you have to look at them,and then attempt to make the program,and you should use this forum as a last resort.
Think about it logically. If you start on the low end ( number < 50) then they are all true. If you start on the high end and cascade down it makes more sense:

1
2
3
4
5
6
7
8
9
  if(grade > 89)
  {
    // A+
  } else {
    if(grade > 85)
    {
       // A
    } 
  ... // and so on 

Topic archived. No new replies allowed.