1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Softa [21]
2 years ago
10

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
Advanced Placement (AP)
1 answer:
FrozenT [24]2 years ago
7 0

Algorithms are used to simulate real programs.

The true conditions of the algorithm are:

  • <em>(a) If the value found in step 6 is 10, 20, 30, 40, 50 or 60 then the sum is even </em>
  • <em>(b) If the last digit of the value found in step 6 is 5, then the sum is odd</em>

First, we analyze the algorithm.

Assume the outcomes of the two rolls are x and y

<u>Step 4: Calculate sum</u>

Sum = x + y

<u>Step 5: Multiply Sum by 10</u>

Result =  Sum \times 10

<u>Step 6: Divide by 2</u>

Result =  Sum \times 10 \div 2

Result =  Sum \times 5

This means that, the algorithm simply multiplies the sum of the rolls by 5

<u>Option (a): If step 6 is 10, 20, 30, 40, 50 or 60, then sum is even</u>

Make Sum the subject in Result =  Sum \times 5

Sum = \frac{Result}{5}

When 10, 20, 30, 40, 50 and 60 are divided by 5, the result is:

Sum = 2, 4,6,8,10, 12

All the above numbers are even number.

This means that, the sum is an even number.

<em>Hence, (a) is true</em>

<u>Option (b): If the last digit of step 6 is 5, then the sum is Odd.</u>

The possible sum of two rolls of dice, where the last digit ends in 5 are:

5, 15, 25, 35

When each of these are divided by 5, the result is:

Sum = 1,3,5,7

It is not possible to have a sum of 1 for two rolls

So, we have:

Sum = 3,5,7

All the above numbers are odd.

This means that, the sum is an odd number.

<em>Hence, (b) is true</em>

So, we can conclude that the true conditions are:

(a) and (b)

Read more about algorithms at:

brainly.com/question/17780739

You might be interested in
How many meters do you cover in a 10-k race
djyliett [7]
There are 1000 meters in 1 kilometer, and so you cover 10,000 meters in a 10k race

hope this helps
8 0
2 years ago
Read 2 more answers
Which is a benefit of organization?
koban [17]
D all of the above

Organizing means to clean so A is right. By having everything clean you know where everything and won’t lost things so B and C are correct. Since all are correct that ultimately means that D is the overall correct answer.
6 0
3 years ago
Ying has just graduated from college and is now interviewing for jobs. Ying would
vivado [14]

Ying's situation as a professional who just graduated from college makes him frictionally unemployed.

<h3>What is unemployment?</h3>

This refers to the state of not having a job, which can be the result of multiple factors. These differences in the cause of unemployment lead to different unemployment types.

<h3>What is frictional unemployment?</h3>

This is a natural type of unemployment that occurs because specific process take time. This includes:

  • Unemployment when someone voluntarily leaves a job and changes to a new one.
  • Unemployment of professionals who just graduated and are in the process of getting a job.

Learn more about unemployment in: brainly.com/question/17272067

3 0
2 years ago
Which part of each sentence is a dependent clause? The boys didn’t think Dani could win the race even though she was on the scho
astra-53 [7]

The dependent clause of a sentence is a part of a sentence before or after a comma that can't stand alone. the dependent clauses are: " After he was injured by a stray ball," and "Though he hated Math,"

5 0
3 years ago
.<br> How can parents support positive personality development in children.?
wel
By keeping them in a healthy mental setting but not being over protective give corporal punishment as necessary
5 0
1 year ago
Other questions:
  • 1. If a piece has changed from F major to a C major, its ___ has changed
    5·2 answers
  • The maps show annual orange crop harvests for two different scales of analysis.
    15·1 answer
  • This is for criminal justice by the way. help please?
    13·1 answer
  • can someome please explain this, I got that only 2 was correct but that's not a choice. please and thank you
    10·1 answer
  • In the exosphere the atmosphere is very what as it begins to fade into space
    5·1 answer
  • How many prencipal meridians are there a cross the United states?
    10·2 answers
  • Describe the "medical model" and how it explains psychological disorders. How has this model changed the way people look at and
    8·1 answer
  • can you give 1000 answers a day i am trying to get caught up on my work if not i will be really mad i will really be happy if yo
    9·2 answers
  • In acknowledgement of the fact that human and social services draw on many different areas
    11·1 answer
  • Describe the trend for the occurrence of caterpillars in forests in western Montana from 2010 to 2013.
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!