Waiting for answer This question has not been answered yet. You can hire a professional tutor to get the answer.
I am writing a code to turn a numerically entered grade into a letter grade however am running into issues with getting it to work.
I am writing a code to turn a numerically entered grade into a letter grade however am running into issues with getting it to work. Is there something that I seem to be doing wrong on my included code?
#include <stdio.h>
int main(void)
{
char calculateLetterGrade(int);
printf("Enter a number grade for the course:")
if (numgrade >= 90 && numgrade <= 100)
{
outputGrade = 'A';
}
else if (numgrade >= 80 && numgrade <= 89)
{
outputGrade = 'B';
}
else if (numgrade >= 70 && numgrade <= 79)
{
outputGrade = 'C';
}
else if (numgrade >= 65 && numgrade <= 69)
{
outputGrade = 'D';
}
else
{
outputGrade = 'F';
}
letterGrade = calculateLetterGrade(numerical_grade);
printf("The letter grade for %d is %cn", numerical_grade, calculateLetterGrade(numerical_grade));
}