Answered You can hire a professional tutor to get the answer.

QUESTION

The following expression returns a random number between 1 and 6 inclusive i. it simulates a die (singular of dice). 1 Math.floor((Math.

The following expression returns a random number between 1 and 6 inclusive i.e. it simulates a die (singular of dice). 1 Math.floor((Math.random() * 6) + 1) Use this expression to simulate rolling a die 60,000 times and display the frequency with which each face of the die finishes uppermost. Use 6 variables to capture the frequencies and a 6-way nested if ... else ... control structure to increment them appropriately.

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question