thank you for your replies but, I can't open the program. program doesn't work.
If you have any different ideas please contact me.
thanks....

Recommended Answers

All 3 Replies

>I can't open the program. program doesn't work.
What program? Is this a reply to a thread and you just hit the wrong button?

>If you have any different ideas please contact me.
I have an idea, be more specific about your problem. But this is the only way I'll contact you because I don't care about your problem. You're just lucky that I'm answering threads in a spare moment.

thank you for answering...

#include <stdio.h>


int main(void)
{

char desiredgrade=NULL; 
double score=0.0;
double currentaverage=0.0; 
double weight=0.0; 




printf("Enter your desired grade:");
scanf("%c,&desiredgrade");
scanf("%f,&currentaverage");
printf("Enter the final exam weight\n");
printf("as a percentage of the course grade");
scanf("%lf,&weight");

if ( 90<=desiredgrade && desiredgrade<=100)
{ 
score =(desiredgrade-(currentaverage*(100-weight)/100)+(100/weight));
printf("You need a score of %.2f on the final to get A\n",score);
}
else if (80<=desiredgrade && desiredgrade<=90)
{
score=(desiredgrade-(currentaverage*(100-weight)/100)+(100/weight));
printf("You need a score of %.2f on the final to get B\n",score);
}
else if (70<=desiredgrade && desiredgrade<=80)
{
score=(desiredgrade-(currentaverage*(100-weight)/100)+(100/weight));
printf("You need a score of %.2f on the final to get C\n",score);
}
else if (60<=desiredgrade && desiredgrade<=70)
{
    score=(desiredgrade-(currentaverage*(100-weight)/100)+(100/weight));
printf("You need a score of %.2f on the final to get D\n",score);
printf("Enter your current average in the course");
}


return 0 ;
}

ı wrote the program like that but it doesn't work.

> ı wrote the program like that but it doesn't work.

It doesn't look like you've fixed this stuff yet.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.