I just took my first exam in my programming class. I'm new at this so bear with me. I had trouble with a this question about a program for calculating GPA:
write a program that asks for letter grades (A,B,C,D, or F -- no +/-) from 5 classes, where A = 4 points, B = 3, C = 2, D = 1, and F = 0.
What I am having trouble with is using the char data type for the grades, and then assigning integer values to those grades. It was the first exam, so we are only using if-else and switch statements, not while or for or increments or anything like that.
I would greatly appreciate if someone could explain this to me, it's driving me crazy!