Question: A program is required to simulate rolling a die three times and count the number of times a 6 is thrown on the die. Choose

 A program is required to simulate rolling a die three times

A program is required to simulate rolling a die three times and count the number of times a 6 is thrown on the die. Choose one of each pair of statements below and reorder them to write the program. Add indenting and braces { ) appropriately. var count -0; var count-1; dieRollMath.floor (Math.random ) *6+1) dieRol1 -Math.floor (Math.random () 5+1) 6) if (dieRoll if (dieRoll-6) alert (count) alert ('count' count++ count+1; for (var i-0; i

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!