So for my assignment I have to calculate the score of a students two question long, multiple choice quiz. HOWEVER. If the student does not answer a question, I'm supposed to enter an F for them and if they answer and it is not A-F, I am supposed to give them an error message and close the program. The thing is, how are you supposed to NOT answer the question, you HAVE to cin an answer.
int main(){
char ans;
char ans2;
int score;
char grade;
string fName;
string lName;
cout << "Enter full name: ";
cin >> fName >> lName;
cout << "Enter question 1 answer: ";
cin >> ans;
ans = toupper(ans);