daily pastebin goal
70%
SHARE
TWEET

Untitled

a guest Mar 13th, 2018 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include "stdafx.h"
  2. #include <iostream>
  3. #include <string>
  4. #include <vector>
  5. #include <algorithm>
  6. #include <cmath>
  7. #include <Windows.h>
  8.  
  9. using namespace std;
  10. inline void keep_window_open() { char ch; cin >> ch; }
  11.  
  12. int main()
  13. {
  14.     char answer;
  15.     cout << "1. What is 2 * 9? Please pick the correct letter answer (in lowercase) below.\n";
  16.     cout << "   a) 14\n";
  17.     cout << "   b) 16\n";
  18.     cout << "   c) 18\n";
  19.     cout << "   d) 19\n";
  20.     cout << "   e) 23\n";
  21.     cin >> answer;
  22.     switch (answer) {
  23.     case 'a':
  24.         Sleep(1200);
  25.         cout << "Incorrect!\n";
  26.         break;
  27.     case 'b':
  28.         Sleep(1200);
  29.         cout << "Incorrect!\n";
  30.         break;
  31.     case 'c':
  32.         Sleep(1200);
  33.         cout << "Correct!\n";
  34.         break;
  35.     case 'd':
  36.         Sleep(1200);
  37.         cout << "Incorrect!\n";
  38.         break;
  39.     case 'e':
  40.         Sleep(1200);
  41.         cout << "Incorrect!\n";
  42.         break;
  43.     default:
  44.         Sleep(1200);
  45.         cout << "Sorry, I did not understand your answer. Please make sure you choose a letter (in lowercase).\n";
  46.         break;
  47.     }
  48.     Sleep(1500);
  49.     cout << "2. What is 4 * 4? Please pick the correct letter answer (in lowercase) below.\n";
  50.     cout << "   a) 14\n";
  51.     cout << "   b) 16\n";
  52.     cout << "   c) 18\n";
  53.     cout << "   d) 19\n";
  54.     cout << "   e) 23\n";
  55.     cin >> answer;
  56.     switch (answer) {
  57.     case 'a':
  58.         Sleep(1200);
  59.         cout << "Incorrect!\n";
  60.         break;
  61.     case 'b':
  62.         Sleep(1200);
  63.         cout << "Correct!\n";
  64.         break;
  65.     case 'c':
  66.         Sleep(1200);
  67.         cout << "Incorrect!\n";
  68.         break;
  69.     case 'd':
  70.         Sleep(1200);
  71.         cout << "Incorrect!\n";
  72.         break;
  73.     case 'e':
  74.         Sleep(1200);
  75.         cout << "Incorrect!\n";
  76.         break;
  77.     default:
  78.         Sleep(1200);
  79.         cout << "Sorry, I did not understand your answer. Please make sure you choose a letter (in lowercase).\n";
  80.         break;
  81.     }
  82.     Sleep(1500);
  83.     cout << "3. What is 20 / 2? Please pick the correct letter answer (in lowercase) below.\n";
  84.     cout << "   a) 4\n";
  85.     cout << "   b) 6\n";
  86.     cout << "   c) 9\n";
  87.     cout << "   d) 10\n";
  88.     cout << "   e) 13\n";
  89.     cin >> answer;
  90.     switch (answer) {
  91.     case 'a':
  92.         Sleep(1200);
  93.         cout << "Incorrect!\n";
  94.         break;
  95.     case 'b':
  96.         Sleep(1200);
  97.         cout << "Incorrect!\n";
  98.         break;
  99.     case 'c':
  100.         Sleep(1200);
  101.         cout << "Incorrect!\n";
  102.         break;
  103.     case 'd':
  104.         Sleep(1200);
  105.         cout << "Correct!\n";
  106.         break;
  107.     case 'e':
  108.         Sleep(1200);
  109.         cout << "Incorrect!\n";
  110.         break;
  111.     default:
  112.         Sleep(1200);
  113.         cout << "Sorry, I did not understand your answer. Please make sure you choose a letter (in lowercase).\n";
  114.         break;
  115.     }
  116. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top