Need some help with my CS homework. 47. Convert the following numbers from decimal to binary: (a) 12.28125 (b) 0.0234375 (c) 0.7 49 (b) With excess 15 representation, what is the range of numbers as written in binary and in decimal for a five-bit cell? 50. Assuming a three-bit exponent field and a four-bit significand, write the bit pattern for the following decimal values: (c) 0.43 (d) 0.1015625
47
Ans:
a) 12.28125
12
6 0
3 0
1 1
12 in binary = 1100
0.28125 * 2 = 0.5625 0
0.5623 * 2 = 1.125 1
0.125 * 2 = 0.250 0
0.250 * 2 = 0.500 0
0.500 * 2 = 1.000 1
.28125 in binary = 01001
12.28125 in binary = 1100.01001
b) 0.0234375
0.0234375*2 = 0.046875 0
0.046875*2 = 0.09375 0
0.09375*2 = 0.1875 0
0.1875*2 = 0.375 0
0.375*2 = 0.75 0
0.75*2 = 1.50 1
0.5*2 = 1.00 1
0.0234375 in binary = 0.0000011
c) 0.7
0.7*2 = 1.4 1
0.4*2 = 0.8 0
0.8*2 = 1.6 1
0.6*2 = 1.2 1
0.2*2 = 0.4 0
0.4*2 = 0.8 0
0.8*2 = 1.6 1
it is repeting sequence
so
0.7 in binary = 1011001
Need some help with my CS homework. 47. Convert the following numbers from decimal to binary:...
Convert the following numbers from binary to decimal, assuming nine-bit two’s complement binary representation: 1 0110 1010
2. Convert the following two's complement binary numbers to decimal numbers. These numbers are integers. a. 110101 b. 01101010 c. 10110101 3. Convert the following decimal numbers to 6-bit two's complement binary numbers and add them. Write the results in 6-bit two's complement binary number format and decimal number format. Indicate whether or not the sum overflows a 6-bit result. a. 14 + 12 b. 30 + 2 C. -7 + 20 d. -18-17 4. What is the signed/magnitude and two's complement range of...
Convert the following numbers from binary to decimal: 101.101001 0.000101 1.0 Convert the following numbers from decimal to binary: 12.28125 0.0234375 0.7 ***If you could show some of the work so I can understand how to do this better, that would be greatly appreciated.
Exercise 1.25 Convert the following decimal numbers to unsigned binary numbers Exercise 1.31 Repeat Exercise 1.29, but convert to 8-bit sign/magnitude numbers KExercise 1.32 Repeat Exercise 1.30, but convert to 8-bit sign/magnitude numbers (a) 4210 (b) 6310 Exercise 1.33 Convert the following 4-bit two's complement numbers to 8-bit two's complement numbers. (c) 22910 (d) 84510 (a) 0101 b) 1010 XExercise 1.26 Convert the following decimal numbers to unsigned binary numbers. Exercise 1.34 Convert the following 4-bit two's complement numbers to...
assignment 1
1. Convert the numbers 47 and 23 from Decimal to Binary. 2. Convert 11011 and 11101 from Binary to Decimal Show all steps. Use Word to write your answers, then save and upload the file.
2.1 a. Find the 16-bit 2’s complementary binary representation for the decimal number 1987. b. Find the 16-bit 2’s complementary binary representation for the decimal number −1987. What are the 16-bit 1’s and 2’s complements of the following binary numbers? c. 10000 d. 100111100001001 Convert the decimal number 19557 to floating point. Use the format SEEMMMM. All digits are decimal. The exponent is stored excess-40 (not excess-50). The implied decimal point is at the beginning of the mantissa. The sign...
. 2.1 a. Find the 16-bit 2’s complementary binary representation for the decimal number 1987. b. Find the 16-bit 2’s complementary binary representation for the decimal number −1987. What are the 16-bit 1’s and 2’s complements of the following binary numbers? a. 10000 b. 100111100001001 Convert the decimal number 19557 to floating point. Use the format SEEMMMM. All digits are decimal. The exponent is stored excess-40 (not excess-50). The implied decimal point is at the beginning of the mantissa. The sign...
1.Convert the following decimal and binary numbers into signed integer 32-bit representation (2’s complement for negative numbers). -99
CS 3503-06 Homework 1 Due: 11:59pm, Friday, Jan. 24. Please show the details of your work. Please submit in D2L using the associated link. Problems (total: 100 points) Representation of signed numbers (5 x 4 = 20 points) In an 8-bit system, find out the binary representation for the following numbers using sign-and-magnitude, ones’ complement, and two’s complement, respectively: 55 -47 In a 4-bit system, find out the binary representation for the following numbers using sign-and-magnitude, ones’ complement, and two’s...
Q1) Convert the following negative decimal numbers to 8 bit binary using the 2’s complement (show the steps): a) -39 b) -127 Q2) Solve the following subtraction problems using 2's complement representation. (Show the steps using 8-bits) a) 19 – 87 b) 89 – 5 Q3) Convert the following numbers into scientific notation: (Note: to show ten raised to the power of n, you can type as 10^n) a) 654.345 b) 0.000000324235 c) 25600000000000 Q4) Convert the following numbers out...