A statistician would like to simulate rolling a single die until she has rolled the die a total of 100 times, or she rolls a six a total of 25 times, whichever comes first. Which boolean expression should she use for the to accomplish this? var rolls = 0; var sixes = 0; while () {var nextRoll = randomNumber (1, 6); if (nextRoll = = 6) {sixes = sixes + 1; }rolls = rolls + 1; }console. log (rolls); console. log (sixes); rolls > = 0 && sixes < 25rolls < 100 && sixes < 25rolls < 100 || sixes < 25rolls = 100 || sixes < = 25rolls
+1
Answers (1)
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “A statistician would like to simulate rolling a single die until she has rolled the die a total of 100 times, or she rolls a six a total of ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Home » Computers & Technology » A statistician would like to simulate rolling a single die until she has rolled the die a total of 100 times, or she rolls a six a total of 25 times, whichever comes first.