Hi everyone,
I am taking Java for the first time(required for my degree), and I am looking for help with a program I need to create. I have searched the forums, but none of them meet the criteria that I am looking for.
For my homework, I need to write a program that will roll 2 die based on the user input. The program needs to keep looping until the number of rolls has been reached. For my output, I need to display the roll number, the roll of the 2 die, and the sum of the 2 die.
For example, if the user entered to have the program roll the die 10 times, I want my output to look something like this:
Roll 1 - The first die comes up 5, the second die comes up 4, your total is 9.
Roll 2 - The first die comes up 2, the second die comes up 3, your total is 5.
Roll 3 - The first die comes up 6, the second die comes up 1, your total is 7.
This will continue to go until the max roll is reached. In this case 10.
Can anyone help me out?