I need help creating a grade calculator in C. I am not allowed to use conditional statements. My problem is that I have written code to determine how many total points the student has, but I cannot think of a way to classify those points as an A (90-100), B (80-89), etc. without using conditional statements. My teacher gave us a hint and told us to use
#define GRADE_A 'A'
letterGrade = GRADE_A
and then a printf statement.
I understand somewhat where he's going, but not how to put it all togethor to acheive my goal. Any thoughts?