405,320 views
17 votes
17 votes
The algorithm below simulates rolling a regular 6-sided die twice. Consider the goal of determining if the sum of the values of the two rolls is odd or even.

Step 1: Using a random number generator, get a value between
1 - 6 inclusively
Step 2: Remember that number
Step 3: Repeat steps 1 and 2
Step 4: Add the two remembered numbers together
Step 5: Multiply that sum by 10
Step 6: Divide the result of that multiplication by 2


What conclusions can be made with regard to what we are trying to determine? Select two answers:

Group of answer choices

If the value found in step 6 is 10, 20, 30, 40, 50 or 60 then the sum is even

If the last digit of the value found in step 6 is 5, then the sum is odd

If the value found in step 6 is 10, 30 or 50 then the sum is odd

If the value found in step 6 is not 20, 40, 60, 80, 100 or 120 then the sum is odd

User Gisli
by
2.6k points

1 Answer

22 votes
22 votes

Final answer:

Two conclusions are that if the value in step 6 is 10, 20, 30, 40, 50, or 60 then the sum is even, and if the last digit of the value in step 6 is 5, then the sum is odd. The option that suggests 10, 30, or 50 indicate an odd sum is incorrect.

Step-by-step explanation:

The question is asking us to determine whether the sum of rolling a regular 6-sided die twice is odd or even based on the last step of an algorithm. Here's how you can know:

  • If the value found in step 6 is 10, 20, 30, 40, 50 or 60 then the sum is even since all these values are divisible by 2. This means the original sum (prior to multiplying by 10) must have been even as well.
  • If the last digit of the value found in step 6 is 5, then the sum is odd because the only way to get a number ending in 5 after multiplying by 10 and dividing by 2 is if the original sum was odd.

To clarify further, if the value found in step 6 is not 20, 40, 60, 80, 100, or 120 then we can't necessarily determine if the sum is odd because odd sums multiplied by 10 will give results ending with 5 (not these values) after dividing by 2. The incorrect statement was saying that if the value found in step 6 is 10, 30, or 50 then the sum is odd, which is an error since those results indicate that the sum is even as discussed previously.

User Fzerorubigd
by
2.8k points