Question: I need this in c++ Program 2 10pts - Write a program that simulates a dice roll - Your program should run the simulation however
I need this in c++
Program 2 10pts - Write a program that simulates a dice roll - Your program should run the simulation however many times the user wants (use a do while for this). If they roll a 1, the program should stop and say, "you lose", use a variable called sum to add the result of the dice rolls, if the sum reaches 100, the program should stop and say, "you win!" If they choose to stop, output the sum of all their dice rolls. Use a counter to keep track of the many times the dice rolled, and output how many times it rolled at the end
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
