Answer to Question #195990 in C++ for mahnoor

Question #195990

Solve on paper, do rough work on the same paper.

  1. Write your university registration number. Underline the last three digits of your number.
  2. Consider the last three digits of your number a decimal number, convert it to a binary number.
  3. Add a binary 1 to the answer you got from part b.
  4. Convert the answer of part c, to hexadecimal number.
  5. Convert the answer of part c, to decimal number.
  6. Consider the last three digits of your number a hexadecimal number, convert it to a binary number.
  7. Convert 1100111110100000 binary to hexadecimal number.
1
Expert's answer
2021-05-20T20:24:19-0400

Answer-:

  1. Suppose taking university registration number is -:181500333; so, taking last three digit is 333.
  2. (333)10 => ( )2

we convert it decimal to binary

so, (333)10 => ( 101001101)2


Question 3 :- Add 1 in part b

"\\space\\space\\space\\space\\space\\space\\space\\space\\space\\space\\space\\space101001101\\\\\n\\space\\space\\space\\space\\space\\space\\space\\space\\space\\space\\space\\space\\space\\space\\space\\space\\space\\space\\space\\space\\space\\space\\space\\space+1\\\\\n\\implies \\space\\space101001110"

so, the answer is (101001110)2


Question 4 :- answer of question 3 is converted into hexadecimal

(101001110)2 => ()16

divided in 3 part 4 bits each

=>

"0001\\space\\space0100\\space\\space1110\\\\\n\\space\\space\\space1\\space\\space\\space\\space\\space\\space\\space\\space4\\space\\space\\space\\space\\space\\space E\\\\"

so (101001110)2 => (14E)16


question 5 :- taking answer of part c

(101001110)2 => ( )10

=> (334)10 Ans.


question 6 :- Consider a hexadecimal no . is (AAA)16 so it convert into binary number

=>

"\\space\\space\\space\\space\\space\\space\\space\\space A\\space\\space\\space\\space\\space\\space\\space A\\space\\space\\space\\space\\space\\space\\space A\\\\\n\\space\\space\\space1010\\space\\space\\space1010\\space\\space1010\\\\"

so, answer is (AAA)16 => (101010101010)2


Question 7, :- Given Binary is (1100111110100000)2 => ( )16

=>

"\\space\\space1100\\space\\space\\space1111\\space\\space\\space1010\\space\\space\\space0000\\\\\n\\space\\space\\space\\space\\space C \\space\\space\\space\\space\\space\\space\\space F\\space\\space\\space\\space\\space\\space\\space\\space A\\space\\space\\space\\space\\space\\space\\space\\space\\space 0\\\\"

so, Answer is (CFA0)16.

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog