• We need your support!

    We are currently struggling to cover the operational costs of Xtremepapers, as a result we might have to shut this website down. Please donate if we have helped you and help make a difference in other students' lives!
    Click here to Donate Now (View Announcement)

Very URGENT BE QUICK. Help in Computing Paper 1. Nov 2007

Messages
73
Reaction score
2
Points
0
2 A variety of goods are stored in a warehouse.
All goods enter and leave the warehouse at a specific point.
All goods are bar coded.
(a) The number of each item in the warehouse is stored as a binary number.
Change 83 into a binary number stored in an 8 bit byte

how to get the answer.
 
Messages
32
Reaction score
0
Points
16
Re: Very URGENT BE QUICK. Help in Computing Paper 1. Nov 20

use weightage:
find a power of 2 greater than the specified number
in this case it is 128
draw columns in descending powers of 2 until power 0

128(2^7) | 64(2^6) | 32(2^5) | 16(2^4) | 8(2^3) | 4(2^2) | 2(2^1) | 1(2^0)

we can't get 128 in 83
hence put 0 below the column of 128
we can get 64 in 83; put 1 below 64 and the remainder is 83-64=19
we now use the remainder
we can't get 32 in 19
put zero below 32
now go to 16;we can get 16 in 19; put 1 below 16 and the new remainder is 19-16=3
use this remainder for the next column
we will get this

128(2^7) | 64(2^6) | 32(2^5) | 16(2^4) | 8(2^3) | 4(2^2) | 2(2^1) | 1(2^0)

0 1 0 1 0 0 1 1

that is 01010011

is it correct?
 
Messages
52
Reaction score
0
Points
0
Re: Very URGENT BE QUICK. Help in Computing Paper 1. Nov 20

Guys my exam is tomorrow and i only just realised i didnt learn about hashing and have no idea on how to answer this question:

May/June 2007 Q12 (b)

Any help would be greatly appreciated.

Thankx
 
Messages
67
Reaction score
0
Points
0
Re: Very URGENT BE QUICK. Help in Computing Paper 1. Nov 20

arvind0708 said:
2 A variety of goods are stored in a warehouse.
All goods enter and leave the warehouse at a specific point.
All goods are bar coded.
(a) The number of each item in the warehouse is stored as a binary number.
Change 83 into a binary number stored in an 8 bit byte

how to get the answer.

01010011
 
Top