Question: Complete the following functions 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 functions below in c++

#include #include #include #include #include #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 reads all the questions from questions.txt into // the Question Bank. It returns the amount of questions in the // Question Bank.

int readQuestions (Question questionBank[]) {

} // This function displays the contents of a question. It can // be used for debugging purposes to ensure that the data is // being read correctly from the file.

void displayQuestion (Question question) { }

SAMPLE questions.text:

Complete the following functions below in c++ #include #include #include #include #include

Placement_In_Race You are third place right now in a race. What place are you in when you pass the person in second place? 1st 2nd 3rd None of the above 2nd @ 1 Days_In_Month How many months have 28 days? 2 1 All of them. Depends if there's a leap year or not. All of them. @ 1 Dead_Sheep A farmer has 17 sheep, all of them but 8 die. How many sheep are still standing? 8 9 25 35 8 1 1 Popeye Which of the following gives Popeye his strength? Broccoli Spinach Fried chicken All of them. Spinach 1 1 Placement_In_Race You are third place right now in a race. What place are you in when you pass the person in second place? 1st 2nd 3rd None of the above 2nd @ 1 Days_In_Month How many months have 28 days? 2 1 All of them. Depends if there's a leap year or not. All of them. @ 1 Dead_Sheep A farmer has 17 sheep, all of them but 8 die. How many sheep are still standing? 8 9 25 35 8 1 1 Popeye Which of the following gives Popeye his strength? Broccoli Spinach Fried chicken All of them. Spinach 1 1

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!