Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Complete the following code below in C++ #include #include #include #include #include #include using namespace std; #define NUM_CHOICES 4 struct Responses { string text[4]; string
Complete the following code below in C++
#include
using namespace std;
#define NUM_CHOICES 4
struct Responses { string text[4]; string answer; bool shuffle; };
struct Question { string ID; string text; Responses responses; int points; };
struct Summary { string questionID; bool correct; bool skipped; string answer; string givenAnswer; int points; };
// This function creates the exam containing numExamQuestions, // where the questions are taken randomly from the Question Bank, // which contains numQuestions. Duplicate questions are not // allowed in the exam. void prepareExam (Question questionBank[], int numQuestions, Question exam[], int numExamQuestions) { } // This function displays a question for the user to answer // while the exam is in progress. void displayExamQuestion (Question question) { } // After the exam is prepared, this function presents the // questions on the exam to the user, one by one. It also // records how the user responded to each question, for // the summary at the end. void generateExam Question exam[], int numExamQuestions, Summary summary[]) { } // This function displays a summary of the user's performance on // each question of the exam, after the exam is completed. void displaySummary (Summary summary[], int numExamQuestions) { } // This function creates the exam containing numExamQuestions, // where the questions are taken randomly from the Question Bank, // which contains numQuestions. Duplicate questions are not // allowed in the exam. void prepareExam (Question questionBank[], int numQuestions, Question exam[], int numExamQuestions) { } // This function displays a question for the user to answer // while the exam is in progress. void displayExamQuestion (Question question) { } // After the exam is prepared, this function presents the // questions on the exam to the user, one by one. It also // records how the user responded to each question, for // the summary at the end. void generateExam Question exam[], int numExamQuestions, Summary summary[]) { } // This function displays a summary of the user's performance on // each question of the exam, after the exam is completed. void displaySummary (Summary summary[], int numExamQuestions) { }Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started