Question

In: Computer Science

1) Covert the following binary values to decimal. Do this interpreting the binary as unsigned and...

1) Covert the following binary values to decimal. Do this interpreting the binary as unsigned and signed.

a. 0111 1001

b. 1000 0000

c. 1111 1111

PLEASE EXPLAIN IT IN DETAIL

Solutions

Expert Solution

*** Binary to Decimal Conversion:

** In the process of conversion of binary number to decimal number,
1. Seperate every bit (0 or 1) in the binary number.
2. number them from right to left starting from 0.
3. Calculate the proper base (power of 2) of that position.
4. Multiply that value with that particular bit (0 or 1).
5. Do it for every number of every position.
6. Add all that calculated values.

* For Example-
If the binary number is 101
Then
decimal number = 1*(2^2) + 0*(2^1) + 1*(2^0)
= 4 + 0 + 1
= 5


a) 0111 1001
decimal number = 0*(2^7) + 1*(2^6) + 1*(2^5) + 1*(2^4) + 1*(2^3) + 0*(2^2) + 0*(2^1) + 1*(2^0)
= 0 + 64 + 32 + 16 + 8 + 0 + 0 + 1
= 121

b) 1000 0000   
decimal number = 1*(2^7) + 0*(2^6) + 0*(2^5) + 0*(2^4) + 0*(2^3) + 0*(2^2) + 0*(2^1) + 0*(2^0)
= 128 + 0 + 0 + 0 + 0 + 0 + 0 + 0
= 128

c) 1111 1111
decimal number = 1*(2^7) + 1*(2^6) + 1*(2^5) + 1*(2^4) + 1*(2^3) + 1*(2^2) + 1*(2^1) + 1*(2^0)
= 128 + 64 + 32 + 16 + 8 + 4 + 2 + 1
= 255


Related Solutions

Convert the following unsigned numbers to the requested form: 01100001 binary to: hex, and also decimal...
Convert the following unsigned numbers to the requested form: 01100001 binary to: hex, and also decimal Hex: Decimal: b) 136 decimal to: hex, and also binary Hex: Binary:
Convert the following binary values to hexadecimal and decimal (1 pt each) Write Hex Numbers as...
Convert the following binary values to hexadecimal and decimal (1 pt each) Write Hex Numbers as 0x##(ex 0x0A, 0xFF) Binary Hexadecimal Decimal 0001-1011 0x 0000-1000 0000-0100 0000-1001 0001-1111 1001-1001 0111-1010 1100-0010 1110-0101 1000-1010 0011-0100 0001-1001 0100-0011 1111-1111 1110-0111 0001-0010 0100-1000 0100-1110 1001-0001 0110-1100 Name: Convert the following hexadecimal values to binary and decimal Write binary numbers as 0000-0000 Hexadecimal Binary Decimal 0xf1 0xac 0x56 0x6c 0x32 0x30 0x05 0x28 0xf0 0x07 0x42 0xb9 0x6d 0x2f 0x71 0x0e 0x2d 0xfb 0xba...
(6 pts) Convert the data representation given below • Convert 10110111 unsigned binary representation, to decimal...
(6 pts) Convert the data representation given below • Convert 10110111 unsigned binary representation, to decimal representation. • Convert 01100000101110000001010111111000 the binary representation to a hexadecimal representation. • Convert 0xBAAADA55 hexadecimal representation, to a binary representation. 2. (8 pts) Complete the following arithmetic operations in two’s complement representation. What are the values of the carry flag and the overflow flag? (Assume a six-bit system) • 31 + 11 • 13 – 15 • (-2) x (-16) • (-15) ÷ 5
Consider the following unsigned decimal constants: 12345, 34567, 9876543. Perform the following operations: Note: Do not...
Consider the following unsigned decimal constants: 12345, 34567, 9876543. Perform the following operations: Note: Do not use any pseudo instructions to do so. (a) Write MIPS instruction(s) to store each constant in temporary registers(i.e., any of $t0, $t1, . . . $t7) (b) Write MIPS instruction(s) to perform an addition operation of the given numbers with the decimal number 123. Make sure the numbers follow the size limitations of the immediate instruction type.
(1) Covert a Hexadecimal to decimal (there is a video for you to watch too). Then...
(1) Covert a Hexadecimal to decimal (there is a video for you to watch too). Then write a program that can convert a binary to decimal (only for integer case). a) Directly use Java built-in method to do this. In this case, only couple lines of code. Hint: Study Integer class in Java. b) Write your own code to convert a binary to decimal from scratch. The input is a binary string. The program output is its corresponding decimal value....
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
Convert the following values into binary numbers for each word and place the binary values in...
Convert the following values into binary numbers for each word and place the binary values in the two-dimensional array in their proper order of words. Value Binary Number Equivalent Word 0 462,91210 Word 1 1142008 Word 2 5420h Word 3 20,992d Word 4 1104208 Word 5 6102008 Word 6 9F88h Word 7 20,49610 Word 8 502416 Word 9 1101018 Word 10 71082h
Represent -60 in binary using 8-bit signed magnitude. Add the following unsigned 8 bit binary numbers...
Represent -60 in binary using 8-bit signed magnitude. Add the following unsigned 8 bit binary numbers as shown. 01110101 + 00111011 Add the following unsigned 8 bit binary numbers as shown. 01000100 + 10111011
Covert a Hexadecimal to decimal (there is a video for you to watch too). Then write...
Covert a Hexadecimal to decimal (there is a video for you to watch too). Then write a program that can convert a binary to decimal (only for integer case). There are two ways to do so. Easy way: Directly use Java built-in method to do this. In this case, only couple lines of code. Hint: Study Integer class in Java. Hard way: Write your own code to convert a binary to decimal from scratch. The input is a binary string....
Covert a Hexadecimal to decimal (there is a video for you to watch too). Then write...
Covert a Hexadecimal to decimal (there is a video for you to watch too). Then write a program that can convert a binary to decimal (only for integer case). There are two ways to do so. Easy way: Directly use Java built-in method to do this. In this case, only couple lines of code. Hint: Study Integer class in Java. Hard way: Write your own code to convert a binary to decimal from scratch. The input is a binary string....
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT