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
charle [14.2K]
4 years ago
13

Create a truth table of the function PRIME(A,B,C,D) where A,B,C,D are the bits of a 4-bit number. A is the highest significant b

it and D is the least significant.
Mathematics
1 answer:
Serga [27]4 years ago
5 0

Answer:

The output is 1 for:

1_{10} = (0001)_{2}

2_{10} = (0010)_{2}

3_{10} = (0011)_{2}

5_{10} = (0101)_{2}

7_{10} = (0111)_{2}

11_{10} = (1011)_{2}

13_{10} = (1101)_{2}

Step-by-step explanation:

The first step is creating the truth table, from the most significant bit to the least significant. Then, each value is converted to decimal, like these two examples:

(1111)_{2} = 1*2^{0} + 1*2^{1} + 1*2^{2} + 1*2^{3} = 15

(1110)_{2} = 0*2^{0} + 1*2^{1} + 1*2^{2} + 1*2^{3} = 14

After the conversion, if the decimal equivalent of the 4-bit number is prime, the output is 1.

So, the output is 1 for 1,2,3,5,7,11,13

So

A - B - C - D - Decimal - Output

0 - 0 - 0 - 0 -       0       -    0

0 - 0 - 0 - 1  -        1       -     1

0 - 0 - 1 - 0 -         2      -     1

0 - 0 - 1 - 1 -          3      -     1

0 - 1 - 0 - 0 -         4      -    0

0 - 1 - 0 - 1 -          5      -     1

0 - 1 - 1 - 0 -          6      -    0

0 - 1 - 1 - 1  -          7      -     1

1 - 0 - 0 - 0 -         8     -      0

1 - 0 - 0 - 1 -          9     -      0

1 - 0 - 1 - 0 -          10    -      0

1 - 0 - 1 - 1  -          11     -      1

1 - 1 - 0 - 0 -          12    -      0

1 - 1 - 0 - 1 -           13    -       1

1 - 1 - 1 - 0 -           14   -        0

1 - 1 - 1 - 1 -            15   -        0

You might be interested in
The sum of the measures of ∠QRT and ∠TRS is 180∘. What is the measure of ∠TRS If ∠TRS = ∠QRT?​
Bad White [126]

Let the angles be x

  • ∠QRT = x
  • ∠TRS = x

We are taking both angles as x because they are equal!

\mathcal{∠QRT  + ∠TRS  = 180 \degree}

\tt \: x + x = 180 \degree

\tt \: 2x = 180 \degree

\tt \: x = 90 \degree

➪ <em>T</em><em>h</em><em>u</em><em>s</em><em>,</em><em> </em><em>T</em><em>h</em><em>e</em><em> </em><em>m</em><em>e</em><em>a</em><em>s</em><em>u</em><em>r</em><em>e</em><em> </em><em>o</em><em>f</em><em> </em><em>b</em><em>o</em><em>t</em><em>h</em><em> </em><em>a</em><em>n</em><em>g</em><em>l</em><em>e</em><em>s</em><em> </em><em>i</em><em>s</em><em> </em><em>9</em><em>0</em><em>°</em><em>.</em><em>.</em><em>.</em><em>~</em>

5 0
3 years ago
Determine whether each ordered pair is a solution to the inequality x+y&gt;−2.
sweet [91]
<h3>3 Answers:</h3>
  • Choice A.  (10, -1)
  • Choice B.  (-8, 9)
  • Choice D.  (6, -3)

===================================

Explanation:

If we plug the coordinates of point A into the inequality, then we get

x+y > -2

10 + (-1) > -2

9 > -2

That last inequality is a true statement since 9 is to the right of -2 on the number line. That means (10,-1) is a solution. Choice A is one of the answers

Choices B and D are also answers for similar reasons.

Something like choice C is not a solution because

x+y > -2

-1+(-9) > -2

-10 > -2

which is false

You should find that choice E is false as well.

---------------------

If you graphed the inequality and all of the points mentioned (see below), then you can visually confirm the answers. Notice how points A, B and D are in the blue shaded region which is the solution set.

The point E on the boundary does not count as a solution. This is due to the lack of "or equal to" portion of the inequality sign. That visually shows point E is not a solution. Point C isn't a solution either as it's nowhere near the blue shaded region.

4 0
3 years ago
Two of the angles in a triangle measure 3° and 2°. What is the measure of the third angle?
Alecsey [184]
Triangles interior angles addition 180 degree



3+2+?=180


5+?=180


?=180-5


?=175
8 0
3 years ago
Write the number 3.636408 to the nearest ten-thousandth
Elodia [21]

Answer:3.6364

Step-by-step explanation:

Because the 0 isn’t worth nothing & so the 4 stays the same

3 0
3 years ago
Read 2 more answers
Classify the triangle as acute, right, or obtuse based on the side lengths of 8, 11, and 14.
ratelena [41]

Answer:

Obtuse

Step-by-step explanation:

8^2+11^2=14^2\\64+121=196\\185=196

Since the hypotenuse is bigger, the triangle is obtuse

8 0
3 years ago
Read 2 more answers
Other questions:
  • Please help me!! I'm terrible at math
    5·1 answer
  • What’s the equation of a line that passes through (-6,5) (-3,-3)
    7·1 answer
  • After dinner, your aunt serves slices of apple pie. Would you rather have a slice with a central angle equal to
    9·2 answers
  • What is the initial value of the function represented by this graph? (5 points)
    15·1 answer
  • Like i said, I am not good at math what so ever. I hate to waste your time but...
    10·1 answer
  • Given vectors u=7i + 3j and v=-4i + 3j, find 5u-4v in terms of unit vectors i and j
    5·2 answers
  • Radius<br> Diameter: 26 inches<br> Circunference :<br> Area:
    14·1 answer
  • Find the exact length of the third side.<br> 10<br> 6<br> PLEASE HELP GUH
    10·1 answer
  • Help will give Brainly points
    11·1 answer
  • What is 1/2 of $3.50
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!