dice game

Create a 'dice game'.   

Ask the user how many rolls they want to take.  

Roll two dice and add them together.  the sum should be between 2 and 12. 

Tell the user what the sum of the dice are.   And if one of the following 'annotate the roll'

 

Please enter the number of rolls of the dice you would like: 9

 Roll # 1; 4 and 3 you got 7

Roll # 2; 6 and 6 you got 12 Box cars

Roll # 3; 2 and 5 you got 7

Roll # 4; 5 and 4 you got 9 - nina

Roll # 5; 4 and 3 you got 7

Roll # 6; 1 and 5 you got 6

Roll # 7; 5 and 3 you got 8

Roll # 8; 3 and 2 you got 5

Roll # 9; 3 and 2 you got 5

 

 List of annotations:

2 - Snake eyes

9 - nina

12 - Box cars

 

Grading:

1) Homework Header with your name in it for student ( with nick name in parentheses)

2) A switch statement

3) use of the rand() function.  

4) seed the random number generator with 623

5) One Discussion question :  How many rolls did it take to get to Snake Eyes?  It this reasonable?  Please put your answer in to the code as comments.  

 

Get Help With a similar task to - dice game

Login to view and/or buy answers.. or post an answer

Related Questions

Similar orders to dice game
9
Views
0
Answers
Send an email, with the current weather information from the target zip code with the weather information.
Create a web form to capture an email address and zip code along with a submit button Create a code behind to consume API from weatherapi.com Send an email, captured from the ‘email to’ textbox, with the current weather information from the t...
12
Views
0
Answers
JAVA project/paper/UML diagram
Java code (150 lines) paper(500 words) UML diagram In addition to the correctness of your code, part of your grade will be based on how organized your code is – how easy is it to read and understand. Proper spacing will aid you in this regard....
31
Views
0
Answers
Project for CS1302 using JavaFX
THE DEADLINE IS TODAY(4/21) AT 11:00!! It's not updating for some reason. I have done some of this project but it's not working and I need someone to complete it. There is a project description file, as well as my current java files. According to the desc...
13
Views
0
Answers
unity programming assignment help
Look at pdf, I can't explain well Aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...