Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

please help me: Data Representations Topics covered: Base conversions, Binary, H

ID: 3884125 • Letter: P

Question

please help me:

Data Representations

Topics covered: Base conversions, Binary, Hexadecimal, Binary Addition/multiplication, 2’s Complement, Extended Precision, Floating Point encodings

Task List (2):

Task 1:   Answer the question.

What is the binary representation of 73?

Convert 111010102 to base 10.

Add 5210 and 3410 as unsigned integers in binary, show the result in binary.

Multiply 510 and 2410 as unsigned integers in binary, show the result in binary.

For your result in #4, convert your result to base 10.

What is the hex code for an integer which contains alternating 1’s and 0’s, starting with a 1?

What is the hex code for an integer where the most significant byte is all 1’s, the next is all 1’s, and next is all 0’s, and the last is all 1’s?

What is the hex code for the most positive int value in C/C++?

What is the hex code for the most negative int value in C/C++?

What is the 2’s complement representation of 70 using 8 bits?

What is the 2’s complement representation of -34 using 8 bits?

Add 28 and -9 using 2’s complement using 8 bits.

Add -52 and -4 using 2’s complement using 8 bits.

Perform 55 - 89 using 2’s complement using 8 bits.

If you had the C code int a = 68, what shifting operation could be done to multiply a by 64 without using multiplication?

If you had the C code int a = 68, and you did a = a>>1 fifty times, what would be the value of a? Explain why.

If you had the C code int a = 68, and you did a = a<<1 fifty times, what would be the value of a? Explain why.

If you had the C code int a = -68, and you did a = a>>1 thirty three times, what would be the value of a? Explain why.

Explanation / Answer

Hi, as per chegg policy we are only allowed to solve the first 4 sub parts, please post others as separate question
1. 73 in binary is 1001001, you can verify by

1×2^6 + 0x2^5 + 0x2^4 + 1×2^3 + 0x2^2 + 0x2^1 + 1×2^0 = 73

2.similary 11101010 base 2 which is binary is 234 in decimal
3.5210 as unsigned(positive) in binary is - 1010001011010 &3410 is 110101010010

1010001011010
110101010010
adding, we get 010000110101100- which is 8620
4. 510 in binary is- 0111111110, 2410 is 0100101101010
multiplying we get 0100101100000100101100, which is 1229100
Thumbs up if this was helpful. otherwise let me know in comments. Good Day.