Write a program to enter a score and a points possible for a test, computer the percent, display the percent to 1 decimal place and then display the letter grade (A – F) using a standard scale (90, 80, 70, 60) – use the if ... else if ... else if ...

Example
Enter points on test: 38
Enter points possible: 49
You got 77.6 percent
That is a C

//This is java forum
// read two values (Obtained point and Maximum points)
double percentage = (Obtained Point/Maximum Point)*100 //-----------> This gives you % of
// the points.

printf("Percentage %0.0f",percentage);
if(percentage>=90)
else if(percentage>=80)
else if(percentage>=70)
else if(percentage>=60)
else if(percentage>=50)

## All 3 Replies

I dont know how to start it out and i know a little about the if-else statements, in my class we are using netbeans and using java..

//This is java forum
// read two values (Obtained point and Maximum points)
double percentage = (Obtained Point/Maximum Point)*100 //-----------> This gives you % of
// the points.

printf("Percentage %0.0f",percentage);
if(percentage>=90)
else if(percentage>=80)
else if(percentage>=70)
else if(percentage>=60)
else if(percentage>=50)
else