Computer Science Notes and Practicebbbh
Computer Science Notes and Practicebbbh
practice
Binary system
the binary is based on the number 2 thus only values 0 and 1s can be
used in this system to represent each digit. This gives the headings of
20 2 1 2 2 2 3 24and so on
a typical binary number would be : 11101111
0 0 0 1 1 0 12 0
16 8
____26_______________
0 0 0 0 0 0 1 1
2
____3_______________
Topical practice
1) An clock Is controlled by binary system it uses a 24 hour clock . the
hour represented by an 8 digit binary code A and the number of
minutes by another 8 digit register B
A B
0 0 0 1 0 0 1 0 0 0 1 1 0 1 0 1
HOURS _______________
MINUTES__________________
2) an alarm clock has been set for 7:30 two 8 bit registers, C and D
are used to represent the hours and minutes of the alarm time
Show how 7:30 would be represented by these two registers
minutes
hours