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
I NEED SOME HELP PLEASE
Kisachek [45]
Now I may not be right however from 6th grade science class they told me it was A) empty space moving 300.00 kilometers per second and slows down in water to 225.000 kilometers per second and 200.000 kilometers per second so your answer should be A. I didn’t include C. Because I can’t tell you how fast light moves through that one.
7 0
3 years ago
Read 2 more answers
What does standard deviation mean in psychology.
Semmy [17]

Answer:                                                                                                                                                                                                                    

A measure of the variability that indicates the average difference between the scores and their mean.

Explanation:

6 0
2 years ago
1234567890 2334555535353
Montano1993 [528]

Answer:

tuff

Explanation:

5 0
3 years ago
PLZZ HELPP WILL GIVE BRANLYEST(IF CORRECT) What must an author include to convince readers that a claim is true?
dezoksy [38]

Answer:

quotes and evidence

(if you need just one then do quotes)

Explanation:

8 0
3 years ago
Read 2 more answers
Duchenne muscular dystrophy (DMD) is an X-linked recessive condition that causes rapid muscle degeneration. DMD occurs in approx
RUDIKE [14]

Answer:

Option D

Explanation:

Options for the question

A) The Y chromosome is slower to mature than the X chromosome.

B) Replication of the X chromosome occurs more often in males.

C) Male hormones cause the expression of X-linked traits.

D) Males only have one copy of the X chromosome

Given-

Duchenne muscular dystrophy (DMD) is an X-linked recessive condition which means it will occur in male even if they have one diseased X gene. While females will have this disease only when they have two diseased X gene

Hence, in most of the cases women with only one diseased X chromosome act as carrier and show normal traits.

Let us assume X is normal gene and X' is the diseased gene then

Genotype of normal father will be - XY

Genotype of carrier mother will be - XX'

Now if these two mates, following offspring will be produced

XY * XX'

XX, XX', XY, X'Y

So the male with X'Y will have DMD

Hence, option D is correct

5 0
3 years ago
Other questions:
  • What are the necessary steps to changing a sterile dressing? How would you explain these steps to a patient who was nervous abou
    9·1 answer
  • The speed of light in four different materials is shown below: Material Speed of light in thousand miles per second A 140 B 78 C
    8·2 answers
  • 1. environment a scientific hypothesis that has been supported by data and facts over and over again 2. environmental science th
    7·1 answer
  • In one investigation, researchers followed three adolescent cohorts, each born a year apart, over three years to see if family h
    7·1 answer
  • Suppose there is a strike in India a nation that supplies cotton fiber to manufacturers of women's shorts. As a result
    6·1 answer
  • If you got 50% on every test all year what grade will you get
    5·2 answers
  • Which combination of gases dominates Earth’s atmosphere?
    13·2 answers
  • AP Psych
    7·1 answer
  • Para saiyo, Dapat bang bigyan ng pagkakataon ang mga kababaihan na mamuno o maging
    6·1 answer
  • Explain what happens to the cell cycle if both p53 alleles are mutated
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!