Question: Write a C++ program that will assign the user a starting bank of $500.00. Ask the user how much they want to wager on whether

 Write a C++ program that will assign the user a starting

Write a C++ program that will assign the user a starting bank of $500.00. Ask the user how much they want to wager on whether or not they will roll doubles on a pair of dice. After getting the user's wager, simulate the rolling of 2 dice (display 2 random numbers between 16 ). If doubles were rolled, increase the user's bank by the amount wagered. If doubles were not rolled, subtract the amount wagered from the user's bank. Print an error message and end the program if the user types in a negative wager or tries to wager more than they have in their bank. - Include a welcome message when the program first runs

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!