QUESTION IMAGE
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
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).
Snap & solve any problem in the app
Get step-by-step solutions on Sovi AI
Photo-based solutions with guided steps
Explore more problems and detailed explanations
Question 1 Table (for 31):
| 128 | 64 | 32 | 16 | 8 | 4 | 2 | 1 |
| - | - | - | - | - | - | - | - |
| 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 |
Question 2 Table (for 96):
| 128 | 64 | 32 | 16 | 8 | 4 | 2 | 1 |
| - | - | - | - | - | - | - | - |
| 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 |