Question: Here is a template for a multiplication game. The user continues to play as long as they guess the answer correctly. The game ends after

Here is a template for a multiplication game. The user continues to play as long as they guess the answer correctly. The game ends after the user's third consecutive incorrect guess. For each correct answer, one point is added to the total, and for each wrong answer, one point is deducted. Additionally, the consecutiveMisses counter increments with each wrong answer and resets to 0 with each correct answer. The questions always ask for the product of a number and two more than that number, like 13,24,3*5, and so on. Finish the code to complete the program.
#include
using namespace std
int main(){
int total =0, nextVal =1, userGuess, correctAnswer;
int consecutiveMisses =0; // # consecutive misses
while (__________________________)
{
}
cout << "Game over." << endl;
return 0;
}

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 Finance Questions!