To be promoted to the level of Lead supervisor/scorekeeper on campus, you must d
ID: 3745485 • Letter: T
Question
To be promoted to the level of Lead supervisor/scorekeeper on campus, you must demonstrate that you can easily and effortlessly convert a configuration of binary switches into their corresponding decimal value. As a reminder, a switch in the DOWN position represents a '1' and a switch in the UP position represents a 'o 4. What does the configuration DOWN-UP-UP-DOWN-UP-DOWN-UP-DOWN-UP-UP represent where the leftmost switch (excess/sign bit) DOWN denotes that the score is negative? What does the configuration DOWN-UP-UP-UP-DOWN-UP-DOWN-UP-DOWN-UP represent where all switches are used to represent numerical information? a. b.Explanation / Answer
Answer is as follows :
WE know that swith DOWN is 0 and UP is 1.
So
a) We convert given string to following set of bytes :
1 0 0 1 0 1 0 1 0 0
where leftmost bit 1 represent the number is -ve.
So we know that except leftmost bits others are 001010100 is equal to 84 in decimal.
So if we include 1 in this, the no get's -84.
b)
The converted string is 1 0 0 0 1 0 1 0 1 0
i.e. equal to numeric value or decimal value 554
if there is any query or want more explanation, ask me in comments....