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 with each correct answer. The questions always ask for the product of a number and two more than that number, like and so on Finish the code to complete the program.
#include
using namespace std
int main
int total nextVal userGuess, correctAnswer;
int consecutiveMisses ; # consecutive misses
while
cout "Game over." endl;
return ;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
