I'm trying to make a GPA calculator where the user inputs a letter grade including a plus or minus but I cannot figure out where to start. So far I have prompted the user for inputs. I need to make it so when someone enters an 'A-' then the program states the gpa is a 3.7 whats my next step
1 2 3 4 5 6 7 8 9 10 11 12
#include <iostream>
#include <string>
usingnamespace std;
int main()
{
string grade;
int credits;
cout << "Enter a grade letter and the corresponding number of credits: " << endl;
cin >> grade >> credits;
Well to start, a char value is a single character.
You want to enter A- which are 2 chars'.
You could try and figure out how to reach each char into a value but I would change it to a string and read in the whole line.