Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Create a program that utilizes random number generators to play number guessing

ID: 3660905 • Letter: C

Question

Create a program that utilizes random number generators to play number guessing games with the user. The user has two game choices - Pick 1 (user picks one number) and Pick 3 (user picks one "special" number, and 2 "regular" numbers. The table below details the rules for each game. The program should allow the user to continue playing unless the user has won $100 or more already, or the user wishes to end the program. The program should produce a report indicating the total wining prizes as well as sub total prizes from each game (i.e. one for Pick 1 and one for Pick 3). Use at least three different functions besides the main function to complete this assignment.

Game Rules

Pick 1: user enters one number within the allowed range of 0 through 25
Winning rule : $2 - number matched (only the highest match can be claimed)

Pick 3: user enters 2 regular numbers and one special number (numbers can be the same or different)
Allowed range:
regular number is 1 through 10, special number is 1 through 25 except 7 and 13
Winning rules:

$5 - only the special number matched
$10 - two regular numbers matched
$50 - one regular number AND the special number matched
$100 - all numbers matched

Explanation / Answer

#include #include //for time functions #include //for srand and rand using namespace std; double Pick1(); double Pick3(); //double totalWins(); void main() { cout
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote