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:多项选择题

A

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

B

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

C

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

D

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

登录即可查看完整答案

我们收录了全球超50000道真实原题与详细解析,现在登录,立即获得答案。

类似问题

更多留学生实用工具

加入我们,立即解锁 海量真题独家解析,让复习快人一步!