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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!