Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ programming Let's play Jeopardy Dice The project's objective is to create a very simple Jeopardy Dice game in which one player (the user) competes

C++ programming image text in transcribed
Let's play Jeopardy Dice The project's objective is to create a very simple Jeopardy Dice game in which one player (the user) competes against the computer to reach 100 points. Each turn, the player (or the computer) repeatedly rolls a die until either a 1 is rolled or the player holds and scores the sum of the rolls (i.e. the turn total). At any time during a player's turn, the player is faced with two decisions: roll -If the player rolls a 1: the player scores 1 point and it becomes the opponent's turn. 2-6: the number is added to the player's turn total and the player's turn continues. o hold-The turn total is added to the player's score and it becomes the opponent's turn. . Implement a game of Jeopardy Dice where the user plays against a computer player that rolls until a 1 is rolled, or the turn total is greater than or equal to 25, or the score plus the turn total is greater than or equal to 100. The player who takes the first turn in the game is chosen randomly Requirements: 1) Your program should contain at least three functions. 2) Your program should interactively display the player and the computer's choices, the dice rolls, the running turn total and the running score after each turn. Note: don't rush into coding. Come up with an algorithm first. Then figure out what variables you would need, what functions can you create and what would be the necessary inputs to these functions and what would they return. The more time you spend on the pseudocode part, the easier it would then be to write a good solution

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

Pro Database Migration To Azure Data Modernization For The Enterprise

Authors: Kevin Kline, Denis McDowell, Dustin Dorsey, Matt Gordon

1st Edition

1484282299, 978-1484282298

More Books

Students also viewed these Databases questions

Question

What is the Definition for Third Normal Form?

Answered: 1 week ago

Question

Provide two examples of a One-To-Many relationship.

Answered: 1 week ago