Write C++ a program which will read in a file of multiple choice questions , ran
ID: 3666126 • Letter: W
Question
Write C++ a program which will read in a file of multiple choice questions, randomize the order of those questions, and then test you. The program will keep track of your score and tell you how well you did at the end of the test.
- Read all the test questions into memory at startup.
- Randomize the order the questions are administered.
- When the test is done, display the number of correct and incorrest problems, as well as a percentage score.
CODE MUST BE IN C++.
Explanation / Answer
#include 002 #include 003 #include 004 #include 005 #include 006 using namespace std; 007 008 int randNum (int n); 009 void pick_a_question(); 010 int select_next_available(int n); 011 012 bool quest_ans[4]; 013 int questions; 014 015 int main(){ 016 int score = 0; 017 int count = 0; 018 int questions; 019 int r, i, n; 020 char answer; 021 022 srand(time(0)); // set seed for randomizing 023 024 cout > questions, count; 026 coutRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.