In the Dice Roll game, the player begins with a score of 1000. The player is prompted for the number of points to risk and a second prompt asks the player to choose either high or low. The player rolls two dice and the outcome is compared to the player's choice of high or low. If the dice total is between 2 and 6 inclusive, then it is considered "low". A total between 8 and 12 inclusive is "high". A total of 7 is neither high nor low, and the player loses the points at risk. If the player had called correctly, the points at risk are doubled and added to the total points. For a wrong call, the player loses the points at risk. Create a DiceRollGame application that uses a DRPlayer object based on this specification. The DRPlayer object should have two Die member variables that represent the dice. The Die class should use a random number generator to determine the outcome in a roll() method. Application output should look similar to: You have 1000 points. How many points do you want to risk? (-1 to quit) 10 Make a call (0 for low, 1 for high): 1 You rolled: 10 You now have 1020 points. How many points do you want to risk? (-1 to quit) 20 Make a cal1 (0 for low, 1 for high): 1 You rolled: 11 You now have 1060 points. How many points do you want to risk? (-1 to quit) 20 Make a call (0 for low, 1 for high): 1 You rolled: 7 You now have 1040 points. How many points do you want to risk? (-1 to quit) -1
In the Dice Roll game, the player begins with a score of 1000. The player is prompted for the number
of points to risk and a second prompt asks the player to choose either high or low. The player rolls
two dice and the outcome is compared to the player’s choice of high or low. If the dice total is between
2 and 6 inclusive, then it is considered “low”. A total between 8 and 12 inclusive is “high”. A total of
7 is neither high nor low, and the player loses the points at risk. If the player had called correctly, the
points at risk are doubled and added to the total points. For a wrong call, the player loses the points at
risk. Create a DiceRollGame application that uses a DRPlayer object based on this specification. The
DRPlayer object should have two Die member variables that represent the dice. The Die class should
use a random number generator to determine the outcome in a roll() method. Application output
should look similar to:
![In the Dice Roll game, the player begins with a score of 1000. The player is prompted for the number
of points to risk and a second prompt asks the player to choose either high or low. The player rolls
two dice and the outcome is compared to the player's choice of high or low. If the dice total is between
2 and 6 inclusive, then it is considered "low". A total between 8 and 12 inclusive is "high". A total of
7 is neither high nor low, and the player loses the points at risk. If the player had called correctly, the
points at risk are doubled and added to the total points. For a wrong call, the player loses the points at
risk. Create a DiceRollGame application that uses a DRPlayer object based on this specification. The
DRPlayer object should have two Die member variables that represent the dice. The Die class should
use a random number generator to determine the outcome in a roll() method. Application output
should look similar to:
You have 1000 points.
How many points do you want to risk? (-1 to quit) 10
Make a call (0 for low, 1 for high): 1
You rolled: 10
You now have 1020 points.
How many points do you want to risk? (-1 to quit) 20
Make a call (0 for low, 1 for high): 1
You rolled: 11
You now have 1060 points.
How many points do you want to risk? (-1 to quit) 20
Make a call (0 for low, 1 for high): 1
You rolled: 7
You now have 1040 points.
How many points do you want to risk? (-1 to quit) -1](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Fd0297869-b60e-4be8-95e2-8f6ba698df06%2Fb3503752-daf9-4343-a0f2-a3e6c29e24d5%2Fzw9237c_processed.png&w=3840&q=75)
![](/static/compass_v2/shared-icons/check-mark.png)
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 2 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
![Computer Organization and Design MIPS Edition, Fi…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
![Network+ Guide to Networks (MindTap Course List)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
![Computer Organization and Design MIPS Edition, Fi…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
![Network+ Guide to Networks (MindTap Course List)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
![Concepts of Database Management](https://www.bartleby.com/isbn_cover_images/9781337093422/9781337093422_smallCoverImage.gif)
![Prelude to Programming](https://www.bartleby.com/isbn_cover_images/9780133750423/9780133750423_smallCoverImage.jpg)
![Sc Business Data Communications and Networking, T…](https://www.bartleby.com/isbn_cover_images/9781119368830/9781119368830_smallCoverImage.gif)