Best writers. Best papers. Let professionals take care of your academic papers

Order a similar paper and get 15% discount on your first order with us
Use the following coupon "FIRST15"
ORDER NOW

how do I write a user input program that simulates a game of a rolling pair of dice. i can create/simulate

how do I write a user input program that simulates a game of a rolling pair of dice. i can create/simulate

rolling one die by choosing one of the integers values of 1, 2, 3, 4, 5, or 6 at randomly. As a hint I need to use Math.random which will perform the computation to select a random integer between 1 and 6.

then I need Assign the value to a variable to represent one of the dice that are being rolled. then Perform this operation twice then add the results in order to obtain the total roll. the program should output the number showing on each dice as well as the total roll.

For example:

The first die comes up 3

The second die comes up 5

Your total roll is 8

 
Looking for a Similar Assignment? Order now and Get 10% Discount! Use Coupon Code "Newclient"