6. +-/6.25 points HunterDM3 4.5.012 Interpret the following algorithm in the con
ID: 3196008 • Letter: 6
Question
6. +-/6.25 points HunterDM3 4.5.012 Interpret the following algorithm in the context of rolling two six-sided dice for iE (1, 2, 3, 4, 5, 6) do r for j11, 2, 3, 4, 5, 6 do if i+j=9 then ee+ 1 What does the counter e count? The total number of rolls. The total number of times a die shows a 6 The total number of times both dice show a 6 The number of times a roll totals 6 The number of times a roll totals 9 What does the counter s count? The total number of rolls. The total number of times a die shows a 6 The total number of times both dice show a 6 The number of times a roll totals 6 The number of times a roll totals 9Explanation / Answer
Solution: What does the counter e count: : The number of times a roll totals 9.
What does the counter s count: : The total number of rolls.
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.