Question: Program 1: Dice Roll Doubles Program DUE: Thursday, October 18 (by 11:50 pm) Write a C++ program that will assign the user a starting bank

 Program 1: Dice Roll Doubles Program DUE: Thursday, October 18 (by

Program 1: Dice Roll Doubles Program DUE: Thursday, October 18 (by 11:50 pm) 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 1-6). 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 Include appropriate user feedback, (i.e. how much they have in the bank, etc.), helpful prompts, and label output Include error checking on the input. Print an error message and quit the program if bad data is entered. Make your code self-documenting, using appropriate indentation, style, and comments. Echo the input back to the user when reporting output. Show the text they entered so the user can see whether they input the correct data. Submit your sourde'cpp rough Blackboard. Good Luck

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!