Answered step by step
Verified Expert Solution
Question
1 Approved Answer
CPP Dice Game ask User for a number number is sum of three dice rolls - program creates a computers guess program rolls a dice
CPP Dice Game ask User for a number number is sum of three dice rolls - program creates a computers guess program rolls a dice three times - values entered into array winner determined by the closest guess Example: user guess is 10 computer guess is 12 sum of three rolls is 9 user wins Example: user guess is 10 computer guess is 12 sum of three rolls is 11 computer wins: user ONLY wins if guess is closer than computer Requirements: 1) Program 1) 2) 3) 4) Keeps the score for user and computer Displays the score after each round Continues until user enters -1 Should use random numbers (rand) 2) Functions 1) 2) to roll the dice (meaning entering into array) determine the guess's difference from the sum 3) Main 1) 2) 3) asks user for input calls the functions outputs the results with the score
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started