Question: for i in range ( n ) : print ( x % 2 ) x = x / / 2 Create a table showing both

for i in range(n):
print(x %2)
x = x//2
Create a table showing both the value printed and the value of x at the end of each
iteration for each of the following test cases:
a. n =6, x =33
b. n =7, x =51
c. n =8, x =124
2. Convert the following unsigned binary numbers to equivalent values in base 10:
a.(11001.100)2
b.(11111.0001)2
c.(10011111.011)2
d.(111111111111111.111)2

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!