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
Mr. Mcdonald wants his students to ask him for help on their geometry problems only after they have attempted the problem for fi
blagie [28]

Mr. McDonald is reinforcing students help seeking behavior on a <u>differential rate</u><u> of </u><u>low responding</u> schedule.

<h3>What is behavior modification?</h3>

Behavior modification can be defined as a process that involves reinforcing desired behaviors in a person or group of people, while withholding reinforcement for undesired behaviors.

This ultimately implies that, Mr. McDonald is reinforcing students help seeking behavior on a <u>differential rate</u><u> of </u><u>low responding</u> schedule by ensuring they ask him for help after they have attempted solving the geometry problems.

Read more on positive reinforcement here: brainly.com/question/10579224

#SPJ1

6 0
2 years ago
I need help with this question, thank you
Art [367]
I believe the answer is B!
5 0
3 years ago
Read 2 more answers
Industrial scrubbers and electrostatic precipitators collect enormous amounts of particulate matter (coal ash) at coal-burning p
LekaFEV [45]

Answer:

<em>Coal ash contains toxic levels of several different pollutants, so when it is collected and stored long-term in coal ash ponds, there is increased </em>

<em>risk of exposure to toxic metals.</em>

Explanation:

The option above best describes an environmental disadvantage of using industrial scrubbers and electrostatic precipitators for pollution abatement.

7 0
3 years ago
Sometimes people become so hopeless that they sink into depression or commit acts of violence. When this happens, human services
Arada [10]

Answer:

The step would be acceptable because a person who is severely depressed cannot physically realize that life goes on. The chemicals in their brain don't process that there are other ways to feel better besides dying.

Most people that try to kill themselves don't actually want to die, as recent studies show, but feel like death is their only way out at that point. But death isn't the only way out, which is why interference is usually very helpful and of course life saving. 

4 0
3 years ago
Read 2 more answers
Why should the storage area be close to the production area​
xxMikexx [17]

Answer:

Fast transportation

Explanation:

make it store it faster the faster the more things the more money.

6 0
3 years ago
Other questions:
  • NEED HELP ASAP
    13·2 answers
  • Please can you give me 7 example of staying committed and with people with great achievement by staying committed?
    7·2 answers
  • This document is used to list injuries ad illnesses, track days away from work, restricted work, or transferred employees, and i
    13·1 answer
  • BEST ANSWER GETS BRAINLIEST!!
    7·1 answer
  • Based on the above quotes, how do we know that on the oregon trail
    6·1 answer
  • Which of the following is not a characteristic of a desert?
    9·1 answer
  • How did improvements in farming lead to the growth of cities.
    12·2 answers
  • In selecting the wire size for a line cord, you should remember that
    9·1 answer
  • People need me yet they give me away every day. What am I?
    8·2 answers
  • Someone help me on my questions please. :(
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!