p align="left"> cout << " 2. Mark Twain\n"; cout << " 4. Edward Furlong\n"; cout << numberOfAnswer2; cin >> yourAnswer; if (yourAnswer == 2) { cout << goodAnswer8; delay(3000); correctAnswers++; score = 8000; } if (yourAnswer != 2) { cout << badAnswer8; delay(3000); score = 1000; walkAway(); } } void answer9() { clrscr(); cout << question9; cout << "1. Black 2. Temple\n"; cout << " \n"; cout << numberOfAnswer2; cin >> yourAnswer; if (yourAnswer == 1) { cout << goodAnswer9; delay(3000); correctAnswers++; score = 16000; } if (yourAnswer != 1) { cout << badAnswer9; delay(3000); score = 1000; walkAway(); } } void answer0() { clrscr(); cout << question0; cout << "1. Gilbert Blithe \n"; cout << "3. Sedrick Smith \n"; cout << numberOfAnswer2; cin >> yourAnswer; if (yourAnswer == 3) { cout << goodAnswer0; delay(3000); correctAnswers++; score = 32000; } if (yourAnswer != 3) { cout << badAnswer0; delay(3000); score = 1000; walkAway(); } } void answer01() { clrscr(); cout << question01; cout << " 2. Black\n"; cout << "3. Red \n"; cout << numberOfAnswer2; cin >> yourAnswer; if (yourAnswer == 3) { cout << goodAnswer01; delay(3000); correctAnswers++; score = 64000; } if (yourAnswer != 3) { cout << badAnswer01; delay(3000); score = 32000; walkAway(); } } void answer02() { clrscr(); cout << question02; cout << "1. Brown \n"; cout << "3. White \n"; cout << numberOfAnswer2; cin >> yourAnswer; if (yourAnswer == 1) { cout << goodAnswer02; delay(3000); correctAnswers++; score = 125000; } if (yourAnswer != 1) { cout << badAnswer02; delay(3000); score = 32000; walkAway(); } } void answer03() { clrscr(); cout << question03; cout << " \n"; cout << "3. 1025 4. 1015\n"; cout << numberOfAnswer2; cin >> yourAnswer; if (yourAnswer == 4) { cout << goodAnswer03; delay(3000); correctAnswers++; score = 250000; } if (yourAnswer != 4) { cout << badAnswer03; delay(3000); score = 32000; walkAway(); } } void answer04() { clrscr(); cout << question04; cout << " 2. Nancy Cartwright\n"; cout << "3. Nancy Drew \n"; cout << numberOfAnswer2; cin >> yourAnswer; if (yourAnswer == 2) { cout << goodAnswer04; delay(3000); correctAnswers++; score = 500000; } if (yourAnswer != 2) { cout << badAnswer04; delay(3000); score = 32000; walkAway(); } } void answer05() { clrscr(); cout << question05; cout << "1. Christopher Reeves \n"; cout << "3. George Reeves \n"; cout << numberOfAnswer2; cin >> yourAnswer; if (yourAnswer == 3) { cout << goodAnswer05; delay(3000); correctAnswers++; score = 1000000; } if (yourAnswer != 3) { cout << badAnswer05; delay(3000); score = 32000; walkAway(); } } // End of 50/50 functions int walkAway() // Decides how the program will end { delay(3000); // Pauses for 3 seconds if (correctAnswers >= 1 && correctAnswers < 15) { cout << "\n\n" << yourName <<", you answered " << correctAnswers << "\n"; // Prints how many questions answered of cout << "out of " << counter << " attempted questions.\n"; // how many attempted to the screen cout << "You've won " << "$" << score << "!"; } if (correctAnswers < 1) // Executes if correctAnswers is less than 1 { cout << "\n\nOh well, maybe next time.\n\n"; // Prints to screen score = 0; cout << "You won " << "$" << score << ". :( \n\n"; } if (correctAnswers == 15) // Executes if correctAnswers is equivalent to 10 { while (counter2 < 10) { counter2++; clrscr(); delay(300); cout << "1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000\n"; cout << "1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000\n"; cout << "1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000\n"; cout << "1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000\n"; cout << "1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000\n"; cout << "1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000\n"; cout << "1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000\n"; cout << "1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000\n"; cout << "1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000\n"; cout << "1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000\n"; cout << "1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000\n"; cout << "1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000\n"; cout << "1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000\n"; cout << "1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000\n"; cout << "1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000\n"; cout << "1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000\n"; cout << "1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000\n"; cout << "1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000\n"; cout << "1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000\n"; cout << "1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000\n"; cout << "1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000\n"; cout << "1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000\n"; cout << "1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000\n"; cout << "1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000\n"; cout << "1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000\n"; delay(300); clrscr(); delay(300); counter2++; // Increases counter2 by one cout << "$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$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