Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ Can you help me with Pick 4? . The user bets on a specific number from 1 to 6. Count the nun e user's

C++
Can you help me with Pick 4? image text in transcribed
. The user bets on a specific number from 1 to 6. Count the nun e user's number. If there is at least one matching number, the user wins humbers bet amount. If none of the 5 dice match the user's number, the user lose Ur example, if the user bets on 4 and the dice come up 2 42 4 5, the user wins two times the be unt. 2. Pick 4: picked an The user selects four digits from O to 9 to bet on. Four random numbers from 0 to 9 are then d the number of matching numbers are found. If the user gets no matching numbers, the user loses bet. If the user gets 1 matching number, the user breaks even. If the user gets 2 matching numbers, their the use r wins double their bet amount. If the user gets 3 matching numbers, the user wins four times their icks 7, 1, 4, 2 and the random numbers come up as 7, 4, 1, 2, the user matched two numbers and bet amount. If the user gets all 4 matching numbers, the user wins fifty times their bet amount. For example, the user p wins double their bet amount. 3. Mini Lotto: The player purchases a lotto ticket for $1. The user either selects 5 different numta 1 to 35 for their lotto ticket or specifies they want a quick pick for the 5 different numbers. Yo need to make sure that hen picked. The number of matching numbers between the lotto ticket and the user does pick five distinct lotto numbers. Five distinct rand ound. If three numbers match, the player wins $5, if four numbers ma ayer matches all five numbers, the player wins $250000. Oth A Game of your choice: Please include do ne and how the betting is done. ch game, f

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_2

Step: 3

blur-text-image_3

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

Professional Microsoft SQL Server 2012 Administration

Authors: Adam Jorgensen, Steven Wort

1st Edition

1118106881, 9781118106884

More Books

Students also viewed these Databases questions