Sovi.AI - AI Math Tutor

Scan to solve math questions

QUESTION IMAGE

self-check 5.2 cs040: exploring computer science 1 dimitrova 4th / unit…

Question

self-check 5.2 cs040: exploring computer science 1 dimitrova 4th / unit 5: what more can i do with basic programming skills? (weeks 8-11) / lesson 5.2 binary unscrambler (week 9) 1. what numbers would you use to count or add to 31? (be sure to put a number in each blank. use 0 if there isnt a different number that should be put into the box) 128 64 32 16 4 2 1 2. what numbers would you add to get the answer of 96? (be sure to put a number in each blank. use 0 if there isnt a different number that should be put into the box) (be sure to put a number in each blank. use 0 if there isnt a different number that should be put into the box) 128 64 32 16 4 2 1

Explanation:

Step1: Decompose 31 into powers of 2

We find which powers of 2 sum to 31: $16 + 8 + 4 + 2 + 1 = 31$. The powers given are 128, 64, 32, 16, 8, 4, 2, 1.

Step2: Fill values for Q1

For each power: 128,64,32 are not used (0); 16,8,4,2,1 are used (1).

Step3: Decompose 96 into powers of 2

We find which powers of 2 sum to 96: $64 + 32 = 96$.

Step4: Fill values for Q2

For each power: 128,16,8,4,2,1 are not used (0); 64,32 are used (1).

Answer:

Question 1 Table (for 31):
1286432168421
--------
00011111
Question 2 Table (for 96):
1286432168421
--------
01100000