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
A bag contains 10 red marbles, 15 yellow marbles, 5 green marbles, and 20 blue marbles. Five marbles are drawn
Sauron [17]

Answer:36%

Step-by-step explanation:

Because theres way more

5 0
3 years ago
Read 2 more answers
Let (x) = 6x. The graph of f(x) is transformed into the graph of g(x) by a verticle compression of 1/3 and a translation of 2 un
Darya [45]

Answer:

g(x) = 2x + 2

Step-by-step explanation:

f(x) = 6x

g(x)= 1/3*f(x) + 2

g(x) = 2x + 2

8 0
2 years ago
What is the exact value of sinA?<br><br> sinA=
lakkis [162]

Answer:

Step-by-step explanation:

5 0
2 years ago
Y - x= 4 what the answer?
serious [3.7K]

Step-by-step explanation:

y-x=4

There could be two possibilities,

1) y = 4+x

2) y-4 = x

8 0
3 years ago
Read 2 more answers
Please solve these equations much appreciated
Reptile [31]

Answer:      

Part c) V=16,500\ m^3

Part d) V=93,312\pi\ mm^3  or V=292,999.68\ mm^3

Step-by-step explanation:

Part c) Find the volume of the inverted rectangular pyramid

The volume of the rectangular pyramid is equal to

V=\frac{1}{3}Bh

where

B is the area of the rectangular base

h is the height of pyramid

<em>Find the area of the base B</em>

B=(60)(15)=900\ m^2

h=55\ m

substitute

V=\frac{1}{3}(900)(55)

V=16,500\ m^3

Part d) Find the maximum volume of tea in the tea cup

we know that

The volume of cylinder (tea cup) is equal to

V=\pi r^{2}h

we have

r=36\ mm\\h=72\ mm

substitute

V=\pi (36)^{2}(72)

V=93,312\pi\ mm^3 -----> exact value

<em>Find the approximate value</em>

assume

\pi =3.14

V=93,312(3.14)=292,999.68\ mm^3

7 0
3 years ago
Other questions:
  • (3x^2+4x-2)-(4x^2-2x-5)
    11·2 answers
  • What is 3over 4 plus 5 over 10
    10·1 answer
  • I WILL GIVE BRILLIANTS
    8·1 answer
  • Jeremy has $5.30 in nickels. Which equation can be used to find how many nickels, x, Jeremy has?
    5·2 answers
  • What is the difference between mean and median? Clearly state the difference.​
    10·1 answer
  • It costs the school band S S dollars per sandwich that they make. The band sells each sandwich for 2 0 % 20% more than it costs
    9·1 answer
  • Determine the number of possible solutions for a triangle with B = 37, a= 32, and b = 27.
    15·1 answer
  • Can someone help me on this
    7·1 answer
  • Help pls<br><br> (11x−5)^2 − (10x−1)^2 − (3x−20)(7x+10) = 124
    11·1 answer
  • Plz help me plz asap i need help
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!