How would you create a program in the language 'C' that ask for user's Letter grade in five classes with input "A" "B" "C" ETC. With A=4 quality points B =3, C=2, D=1, F=0 and then calculating the user's GPA. Then also he would like us to output statements such as if the gpa > 3.5 it should say "you are on the dean's list"
if gpa is < 2.0 you are on academic probation
if gpa is == 4 "Excellent"
if gpa is ==3 "Above average"
if gpa is ==2"below average"
***It also is noted that the instructor would like us to you if statements or switch statements as this chapter is focused on them. This is the code I have so far but it only is able to calculate the GPA. It does not output the statements for specific GPAs it is like it ignores the entire bottom half of my code. I am not looking for anyone to do my work, but more for suggestions on maybe what to research or what I should tweak in my code. The examples in the book are simple If statement examples, unfortunately.


Code:
#include <stdio.h>
#include <math.h>
int main()
{
char grade_one;
char grade_two;
char grade_three;
char grade_four;
char grade_five;
float gpa;
float grade_1,grade_2,grade_3,grade_4,grade_5;
printf("Please enter grade one:\n");
scanf("%c", &grade_one);
printf("Please enter grade two:\n");
scanf(" %c", &grade_two);
printf("Please enter grade three:\n");
scanf(" %c", &grade_three);
printf("Please enter grade four:\n");
scanf(" %c", &grade_four);
printf("Please enter grade five:\n");
scanf(" %c", & grade_five);
if (grade_one == 'A')
{
grade_1 = 4.0;
}
else if (grade_one == 'B')
{
grade_1 = 3.0;
}
else if (grade_one == 'C')
{
grade_1 = 2.0;
}
else if (grade_one == 'D')
{
grade_1 = 1.0;
}
else if (grade_one == 'F')
{
grade_1 = 0.0;
}
if (grade_two == 'A')
{
grade_2 = 4.0;
}
else if (grade_two == 'B')
{
grade_2 = 3.0;
}
else if (grade_two == 'C')
{
grade_2 = 2.0;
}
else if (grade_two == 'D')
{
grade_2 = 1.0;
}
else if (grade_two == 'F')
{
grade_2 = 0.0;
}
if (grade_three == 'A')
{
grade_3 = 4.0;
}
else if (grade_three == 'B')
{
grade_3 = 3.0;

}
else if (grade_three == 'C')
{
grade_3 = 2.0;
}
else if (grade_three == 'D')
{
grade_3 = 1.0;
}
else if (grade_three == 'F')
{
grade_3 = 0.0;
}
if (grade_four == 'A')
{
grade_4 = 4.0;
}
else if (grade_four == 'B')
{
grade_4 = 3.0;
}
else if (grade_four == 'C')
{
grade_4 = 2.0;
}
else if (grade_four == 'D')
{
grade_4 = 1.0;
}
else if (grade_four == 'F')
{
grade_4 = 0.0;
}
if (grade_five == 'A')
{
grade_5 = 4.0;
}
else if (grade_five == 'B')
{
grade_5 = 3.0;
}
else if (grade_five == 'C')
{
grade_5 = 2.0;
}
else if (grade_five == 'D')
{
grade_5 = 1.0;
}
else if (grade_five == 'F')
{
grade_5 = 0.0;
}
else
{
printf("Please enter grade one");
}
gpa = (grade_1 + grade_2 + grade_3 + grade_4 + grade_5) / 5;
printf("Your GPA is %.2f\n", gpa);
if (gpa > 3.5)
{
printf("You are on the dean's list");
}
else if (gpa < 2.0)
{
printf("You are on academic probation");
}
else if (gpa == 4)
{
printf("Excellent");
}
else if (gpa == 3)
{
printf("Above Average");
}
else if (gpa == 2)
{
printf("Average");
}
else if (gpa == 1)
{
printf("Below Average");
}
else if (gpa == 0)
{
printf("Poor");
}
return 0;
}