array

Hey guys I am studying a totally new program and I am really bad at it ...could you please give me some help with this exercise? i will really apreaciate any answer ...maybe I will understand something about it .Thank you so much .

Write a program to roll 5 dice. Hint: Each time the mouse is pressed update the content of an array and print it’s content to the console
There are 3 things you need to be able to do:

1. simulate the roll of a die.
2. be able to save the value of the 5 rolls in your array of size 5.
3. know how to display the contents of the array onto the console.

Which of these do you not have even the slightest clue of how to do?
Topic archived. No new replies allowed.