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
Don’t have a question
azamat

Answer:

don't have an answer :):):):):)

5 0
2 years ago
Read 2 more answers
The development of dangerous strains of disease organisms is a consequence of which agricultural practice?
arlik [135]

Answer:

A)

Explanation:

b and e kills organisms, so it doesn't evolve the diseases. genetic modification causes the plants to be resistant, and doesnt target diseases, so the disease isnt evolved. only antibiotics make diseases evolve, overuse of it causes the disease to develop resistance if it isnt completely killed off.

5 0
3 years ago
I'll give the brainliest to the first right answer!
katrin2010 [14]
It is c. that is because there are 10 red to 20 black which is a 10:20 ratio. you can simplify this to 1:2 since they are both divisible by 10
8 0
3 years ago
The rate of species extinction on Earth is currently very high—perhaps as high as it has been since the time of the dinosaur ext
ZanzabumX [31]

The disruption which is not a major cause of a high rate of species extinction on planet Earth is: c. earthquakes.

<h3>What is extinction?</h3>

Extinction refers to a situation in which a species, family, or other taxonomic group of living organisms such as animals or plants become extinguished, destroyed, or exterminated (dead).

This ultimately implies that, extinction literally means the extermination of a species, family, or other taxonomic group of living organisms. However, earthquakes are disruption which aren't a major cause of a high rate of species extinction on planet Earth.

Read more on species extinction here: brainly.com/question/17525293

#SPJ1

5 0
2 years ago
Describe why George Washington was the best choice for first president
Anna11 [10]

Answer:

He helped in the war.

Explanation:

3 0
3 years ago
Read 2 more answers
Other questions:
  • In a payday loan, what is considered collateral?
    14·2 answers
  • Why did Christianity take hold in some places more than in others?
    11·1 answer
  • Eva hires a well-known pop singer to support the use of her new fashion label. which technique of advertising does eva use here?
    12·2 answers
  • Who are the most important agents of change earth’s surface? why is that
    10·1 answer
  • Need help on Phyllis Schlafly and her role in the ERA movement.
    13·1 answer
  • Many relationships between the individual and society are altered and eventually severed. Identify this theory on aging.
    10·1 answer
  • Label each significant piece of land and explain when and how America secured each part of our nation represented on the map bel
    8·1 answer
  • What economic sector are call sectors located in?
    12·1 answer
  • From “A Bachelor’s Complaint of the Behaviour of Married People”
    15·1 answer
  • What do green anacondas eat a year?
    12·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!