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:
(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....
1) What are the hexadecimal, and octal equivalents for the unsigned binary value 0111 0000 1101?...
1) What are the hexadecimal, and octal equivalents for the unsigned binary value 0111 0000 1101? (note the spaces in the binary are for readability (like a comma in a decimal value; there is only a single 12 bit binary value) PLEASE EXPLAIN IT IN DETAIL
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....
How do I covert a char from a sting that is made up of hex values...
How do I covert a char from a sting that is made up of hex values into a long int, without using istringstream and istring in c++?
Convert the following binary number to dotted decimal format. 11000000100110010000100101011001
Convert the following binary number to dotted decimal format. 11000000100110010000100101011001
Show decimal values below in two complement binary notation with 6 bits. a) 18 b) -12
Show decimal values below in two complement binary notation with 6 bits. a) 18 b) -12
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT