CSE 118 fundamentals of programming Java 14.0
General Explanation:
()2 means binary number.
()16 means hexadecimal number
()10 means decimal number.
To convert the decimal no to binary. Divide the decimal no by 2. And write the remainder from bottom to top.
-------------------------------------------------------------------
Consider the first part:
( 281 )10 = ( 100011001)2 = ( 119)16
Hex to binary calculation: (119)₁₆ = (1 × 16²) + (1 × 16¹) + (9 × 16⁰) = (281)₁₀
Second part:
( 641)10 = ( 1010000001)2 = ( 281 )16
Binary calculation: (281)₁₆ = (2 × 16²) + (8 × 16¹) + (1 × 16⁰) = (641)₁₀
Third part:
(1707 )10 = ( 0110 1010 1011 )2 = (6AB )16
Binary to decimal calculation: (011010101011)₂ = (0 × 2¹¹) + (1 × 2¹⁰) + (1 × 2⁹) + (0 × 2⁸) + (1 × 2⁷) + (0 × 2⁶) + (1 × 2⁵) + (0 × 2⁴) + (1 × 2³) + (0 × 2²) + (1 × 2¹) + (1 × 2⁰) = (1707)₁₀
-----------------------------------------------------------------------------------------
PLEASE UPVOTE
Get Answers For Free
Most questions answered within 1 hours.