Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

can someone help me fix my jeopardy game #include #include using namespace std; int rollDie() { return (rand() % 6+1); } void askYoNs(){ cout <

can someone help me fix my jeopardy game

#include #include using namespace std;

int rollDie() { return (rand() % 6+1); }

void askYoNs(){ cout<<"Do you want to roll a dice (Y/N)?:"<

void printScores(int turnTotal,int humanTotal,int compTotal){ int player; int human; if(player==human){ cout<<"Your turn total is "<=10 ///then switch player if(curr_player!=human){ computerTotal+=turnTotal; curr_player=changePlayer(curr_player); turnTotal=0; printScores(turnTotal,humanTotal,computerTotal); } return curr_player; } void game(){ int player=human; int humanTotal=0; int computerTotal=0; int turnTotal=0;

if (turnTotal==0){ cout<<"Welcome to Jeopardy Dice!"<>YoN; roll=rollDie(); cout<<"You rolled a "<

///check who is winner if(humanTotal>=80){ cout<<"Congratulations! human won this round of Jeopardy Dice!"<

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Visual C# And Databases

Authors: Philip Conrod, Lou Tylee

16th Edition

1951077083, 978-1951077082

More Books

Students also viewed these Databases questions

Question

Compare the different types of employee separation actions.

Answered: 1 week ago

Question

Assess alternative dispute resolution methods.

Answered: 1 week ago

Question

Distinguish between intrinsic and extrinsic rewards.

Answered: 1 week ago