- Aug 19, 2001
- 134
- 0
- 0
printf("\n **** Course Report for Student %i ****", id);
printf("\n\nStudent scored %i on Exam 1", ex_1);
printf("\nStudent scored %i on Exam 2", ex_2);
printf("\nStudent scored %i on Class Project", class_project);
printf("\n\nStudent scored %i points differently on Exam 2 versus Exam 1", ex_diff);
printf("\n\nStudent's exam average is %3.2f", exam_avg);
printf("\n\nStudent's average for the course is %3.2f\n", course_avg);
{
if (course_avg >= '90')
printf("\nStudent's grade in course is A");
if else (course_avg >= '80')
printf("\nStudent's grade in course is B");
if else(course_avg >= '70')
printf("\nStudent's grade in course is C");
if else(course_avg >= '60')
printf("\nStudent's grade in course is D");
else
printf("\nStudent's grade in course is F\n ");
}
return 0;
}
I can't seem to get it to print out the correct grade with the students average, I know it might seem very easy to you all but I am just starting out so please help me?
printf("\n\nStudent scored %i on Exam 1", ex_1);
printf("\nStudent scored %i on Exam 2", ex_2);
printf("\nStudent scored %i on Class Project", class_project);
printf("\n\nStudent scored %i points differently on Exam 2 versus Exam 1", ex_diff);
printf("\n\nStudent's exam average is %3.2f", exam_avg);
printf("\n\nStudent's average for the course is %3.2f\n", course_avg);
{
if (course_avg >= '90')
printf("\nStudent's grade in course is A");
if else (course_avg >= '80')
printf("\nStudent's grade in course is B");
if else(course_avg >= '70')
printf("\nStudent's grade in course is C");
if else(course_avg >= '60')
printf("\nStudent's grade in course is D");
else
printf("\nStudent's grade in course is F\n ");
}
return 0;
}
I can't seem to get it to print out the correct grade with the students average, I know it might seem very easy to you all but I am just starting out so please help me?