Question

In: Computer Science

1.Convert (FA)16 to decimal 2.Convert (10101110)2 to decimal. 3.Convert (0.10101)2 to decimal.

1.Convert (FA)16 to decimal

2.Convert (10101110)2 to decimal.

3.Convert (0.10101)2 to decimal.

Solutions

Expert Solution

1. To convert (FA)16 to decimal multiply each digit with its power of 16

Hex digits are: 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F

F = 15, A = 10

15*161 + 10*160 = 15*16 + 10*1 = 240 + 10 = 250

Therefore, (FA)16 = 250 in decimal.

2. To convert (10101110)2 to decimal multiply each digit with its power of 2

Digit 1 0 1 0 1 1 1 0
Power of 2 27 26 25 24 23 22 21 20
Digit * power of 2 128 0 32 0 8 4 2 0

Now, add up the values obtained on multiplying digit and power of 2.

128 + 0 + 32 + 0 + 8 + 4 + 2 + 0 = 174

Therefore (10101110)2 = 174 in decimal.

3. To convert (0.10101)2 to decimal multiply each digit before the fractional part with power of 2 and divide each digit of the fractional part with the power of 2.

We have 0 before the fractional part, so we multiply 0 with power of 2 corresponding to its place i.e., 0*20 = 0

Digit 1 0 1 0 1
Power of 2 21 22 23 24 25
Divide each digit by power of 2 1/2 = 0.5 0/4 = 0 1/8 = 0.125 0/16 = 0 1/32 = 0.03125

Now, add up the values

0.5 + 0 + 0.125 + 0 + 0.03125 = 0.65625

To get the decimal value of (0.10101)2 add the part before the fractional part and the fractional part as obtained above i.e., 0 + 0.65625 = 0.65625

Therefore the decimal valus of (0.10101)2 is 0.65625


Related Solutions

Problem: Convert the following binary number to decimal. 1. 110101.101 Problem: Convert the following decimal number...
Problem: Convert the following binary number to decimal. 1. 110101.101 Problem: Convert the following decimal number to fractional binary representation. 1. 103.5625
Part 2: Signed values: Convert each as indicated. 8. Decimal to Hexadecimal (1 byte, one's complement)...
Part 2: Signed values: Convert each as indicated. 8. Decimal to Hexadecimal (1 byte, one's complement)      a. -18      b. -41
Part 2: Signed values: Convert each as indicated. 7. Decimal to Hexadecimal (1 byte, signed magnitude)...
Part 2: Signed values: Convert each as indicated. 7. Decimal to Hexadecimal (1 byte, signed magnitude)      a. -18      b. -41
Convert the decimal number, 315.56 into binary form?
Convert the decimal number, 315.56 into binary form?
Convert the following to a decimal, scientific notation, and engineering notation Decimal to scientific and engineering...
Convert the following to a decimal, scientific notation, and engineering notation Decimal to scientific and engineering notation: 270, 14600, 0.000456, 0.022, 0.000000051, 66500000, 423000, 0.78 Scientific notation to decimal and engineering notation,4.5x10^4, 6.8x10^-8, 2.7x10^5, 7.22x10^-2, 9.52x10^-5, 1.89x10^2, 3.6x10^7, 8.62x10^-10 engineering notation to decimal and scientific notation,12k, 68p, 2.1G, 82T, 7.1n, 100m, 1.8k
(a) Convert the decimal numbers, 70 and -26 to binary in the signed 2’s complement system....
(a) Convert the decimal numbers, 70 and -26 to binary in the signed 2’s complement system. Make sure there are enough digits in the results to be able to perform arithmetic operations with these two numbers. (b) Perform in the signed 2’s complement system, (+70) + (-26) (c) Perform in the signed 2’s complement system, (-70) - (-26) (d) Perform in the signed 2’s complement system, (+70) + (+26)
16-24 (Objectives 16-1, 16-2, 16-3) The following are common tests of details of balances or substantive...
16-24 (Objectives 16-1, 16-2, 16-3) The following are common tests of details of balances or substantive analytical procedures for the audit of accounts receivable: Select 20 customer accounts from the accounts receivable master file and trace to the aged accounts receivable listing to verify name and amount. Select 20 customer accounts from the aged accounts receivable listing and trace to the accounts receivable master file for name, amount, and aging categories. Prepare a bar chart showing amounts and percentages of...
Write a program to convert the input numbers to another number system. 1. Decimal to Binary...
Write a program to convert the input numbers to another number system. 1. Decimal to Binary 2. Binary to Decimal 3. Hexadecimal to Decimal 4. Decimal to Hexadecimal 5. Binary to Hexadecimal 6. Hexadecimal to Binary The user will type in the input number as following: Binary number : up to 8 bits Hexadecimal number: up to 2 bytes Decimal number: Less than 256 As a result, print out the output after the conversion with their input numbers. The program...
Consider a FA 30yr LPM 3/1 ARM with no interest rate caps and no payment caps....
Consider a FA 30yr LPM 3/1 ARM with no interest rate caps and no payment caps. The loan is for $200,000, with two points and other Regulation-Z fees of $3,000. The fixed period rate is 4% and the margin 2.5%. The underlying index at dates 0,1,2,3,4,5,6 years is 2%, 2.5%, 3%, 3.5%, 4%, 4%, 5%, respectively, and then stays at 5.5% until mortgage maturity. What is the APR?
Convert the following binary number to dotted decimal format. 11000000100110010000100101011001
Convert the following binary number to dotted decimal format. 11000000100110010000100101011001
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT