Cuyahoga Community College Two Six Side Dice Method Lab – coursefighter.com
Programming – coursefighter.com
For this lab, create a method (separate from your main method) that “rolls” two six side dice, and then calculate the result.
That result should be returned using return.
There are two options for this program:
- If you have already completed lab 11, if you incorporate this lab with that one, you will receive up to 5 bonus points.
- Modify that program so the dice a rolled in a method, and the result is returned.
- If you struggled with lab 11, then for lab 12:
- In your main program, just have the system roll the dice 5 times (by calling the method) and display the results.