Question: Program 1: Dice Roll Doubles Program DUE: Thursday, October 18 (by 11:50 pm) Write a Ce program that will assign the user a starting bank
Program 1: Dice Roll Doubles Program DUE: Thursday, October 18 (by 11:50 pm) Write a Ce 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 users wager, simulate the rolling of 2 dice (display 2 random numbers between 1-6). If doubles were rolled, increase the users bank by the amount wagered. If doubles were not rolled, subtract the amount wagered from the users 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, lie. how much they have in the banik, etc-j, helpful prompts and label output Include error checking on the input. Print an error messape 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 uer can see whether they input the correct data Submit your source code (cpp) through Blackboard Good Luck
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
