Hello somebody should please help me with codes to run this assignment below:
It should have a button that when clicked causes your code to simulate rolling a dice 100 times. Your program needs an array that will count the number of times that each of the six possible numbers is rolled; and then displays those count after the 100 rolls have taken place.
The pseudo-code for the task is as follows:
SET THE ARRAY TO HAVE ZEROES
REPEAT 100 TIMES
ROLL A RANDOM NUMBER BETWEEN 1 AND 6 ADD 1 TO COUNTER [DICEROLL]
DISPLAY THE NUMBER OF 1S, 2S...
I look forward to hearing from you guys. Thanks