I am having some trouble creating a simple program to calculate a GPA from user input due to some constraints placed on the assignment.
Namely:
1. No use of 'string'.
2. No use of arrays.
3. Use single characters 'char'.
** Use of 'int/double/bool' and other basic classes and other operators are allowed.
Those are the primary instructions, so I assume that getting into enum, struct, or more complex functions would also not be allowed.
The program is meant to process letter-grade input and assign numeric values. Everything is working fine, however I cannot figure out how to deal with grades like "A+" or "A-" (multiple character inputs, stored in single character variables).
I am hoping to get some assistance, or advice.
I feel like I'm missing something obvious and I'm embarrassed to ask my peers.
Here is what I have, that was working fine.
However with the constraints (listed above) that I've overlooked, I essentially have to remove the arrays and work out a way to dumb it down to just single character (char) inputs.