#include<iostream>
#include<string>
usingnamespace std;
int main()
{
constchar size = 20;
char answers[size];
cout << "Welcome to the written portion of the DMV exam. \n";
cout << "Please only enter capital A, B, C, or D for your answers.\n\n" << endl;
for (int index = 0; index < size; index++)
{
cout << "Enter your answer for question " << index+1 << endl;
cin >> answers[index];
while (answers[index] != 'A')
{
cout << "ERROR: you must input capital A,B,C, or D" << endl;
cin >> answers[index];
}
}
system("pause");
return 0;
}