Advertisement
Guest User

Untitled

a guest
Oct 19th, 2019
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.63 KB | None | 0 0
  1. #include "TestGrader.h"
  2.  
  3.  
  4. int main()
  5. {
  6.     string answers[20] = {"B", "D", "A", "A",
  7.                           "C", "A", "B", "A",
  8.                           "C", "D", "B", "C",
  9.                           "D", "A", "D", "C",
  10.                           "C", "B", "D", "A"};
  11.  
  12.     TestGrader exam;
  13.  
  14.     exam.setKey(answers);
  15.  
  16.     string examinee[20];
  17.     int selection;
  18.     do
  19.         {
  20.         for (int x = 0; x < 20; x++)
  21.         {
  22.             cout << "Question #" << x + 1 <<": " << endl;
  23.             cin >> examinee[x];
  24.  
  25.         }
  26.  
  27.         exam.grade(examinee);
  28.  
  29.     } while (selection != -1);
  30.  
  31.  
  32.     return 0;
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement