Question
Generate random value containing three non zero decimal digits Xd = Generate random value containing seven binary digits Yb = Make computation: 1. Convert Xd
Generate random value containing three non zero decimal digits Xd = Generate random value containing seven binary digits Yb = Make computation:
1. Convert Xd from base 10 to base 2 ; 2. Convert Xd from base 10 to base 8 ; 3. Convert Xd from base 10 to base 16 ; 4. Convert Yb from base 2 to base 8 ; 5. Convert Yb from base 2 to base 10 ; 6. Convert Yb from base 2 to base 16 ; 7.Convert Xd to negative value in twos complement form and make its size two bytes ; 8. Convert Xd to negative value in sign-magnitude form and make its size two bytes. 9. Ab = Xd + Yb (in base 2); 10. Bb = Xd - Yb (in base 2); 11. Cb = Xd * Yb (in base 2); 12. IF Xd > Yb, then Db = Xd / Yb, if Xd < Yb, then Db = Yb / Xb (in base 2); 13. Convert Ab and Cb to base 8 and add together in base 8; 14. Convert Ab and Cb to base 16 and add together in base 16; Show that results from 13 and 14 are equal.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started