Group Three - Assignment Two-3
Group Three - Assignment Two-3
INSTRUCTIONS: Solve the following problems, show all necessary steps to get full
credit.
1. To binary: 128 64 32 16 8 4 2 1
0 1 1 1 0 1 0 12
get the hexadecimal equivalent, it will be parted into two, of which it will
be 4bits.
2. 9 8 F A 2
B 1 1 9 4
1 0 0 1 1 0 0 0 1 1 1 1 1 0 1 0 0 0 1 02
+1 0 1 1 0 0 0 1 0 0 0 1 1 0 0 1 0 1 0 0 2
1010010100001001101102
each, from the right to the left. 0001 0100 1010 0001 0011 0110, we
1 4 A 1 3 6
256 128 64 32 16 8 4 2 1
0 1 0 0 1 1 1 0 1
1 0 1 1 0 0 0 1 0 (1’s complement)
+ 1
1 0 1 1 0 0 0 1 12 (2’s complement)
32 16 8 4 2 1
0 1 0 1 0 1 (21)
1 0 1 0 1 0 (1’s complement)
+ 1
1 0 1 0 1 12 1010112 = -2110.
5. To record pitch count, we use the smallest power of two that can represent
28=256
256 128 64 32 16 8 4 2 1
more bit.
256 128 64 32 16 8 4 2 1
0 1 0 0 1 0 0 0 1
0 + 128 + 0 + 0 + 16 + 0 + 0 + 0 + 1=145
128 64 32 16 8 4 2 1
1 0 1 1 0 0 0 1 =B116
0 1 0 0 1 1 1 0 (one’s complement)
+ 1
0 1 0 0 1 1 1 1 =64+8+4+2+1=7910
0XB3+0XB1=-77+(-79) =-15610
two’s complement.
+ 1
0 0 1 0 1 0 1 0 =32+8+2=4210
Since the original number was negative, the decimal representation is -4210.
B 3
0 1 0 0 1 1 0 0 (One’s complement)
+ 1
0 1 0 0 1 1 0 1 =64+8+4+1=7710
4 7
0 1 0 0 0 1 1 1
2
2X0 = 0+1 = 1X2 = 2+0 = 2X2 = 4+0 = 4X2 = 8+0 =8X2 = 16+1 =17X2= 34+1 =
35X2= 70+1= 7110
Since the original number is positive, 4716 = 7110
0xB3 + 0x47 = -77 + (71) = -610
YES; The sum of 0XB3 + 0X47 can be represented using am 8-bit 2’s
complement.
Therefore, the sum in hexadecimal is 0XFA.
11.0XD6=D616
D 6
1101 0110 110101102
128 64 32 16 8 4 2 1
1 1 0 1 0 1 1 0 =D610
0 0 1 0 1 0 0 1 =1’S complement
+ 1
0 0 1 0 1 0 1 0 =32+8+2=4210
Since the original number was negative, the decimal representation is -4210.
12.-5110
Convert to binary
128 64 32 16 8 4 2 1
0 0 1 1 0 0 1 1 =5110
1 1 0 0 1 1 0 0 (1’S complement)
+ 1
1 1 0 0 1 1 0 1 =110011012
Therefore -51 is 110011012
To convert to hexadecimal, we group into four-bit segment
1100 1101
C D CD16
Thus, -51 in hexadecimal is OXCD
✓ GROUP MEMBERS
NAMES MATRIC NO DEPARTMENT
PETER ATINUKE HANNAH 24/05ANA044 ANATOMY
FASOYO NIFEMI SAMUEL 24/05PTP147 PHYSIOTHERAPY
OBASI MARY-QUEEN 24/05PSP027 PHYSIOLOGY
CHINECHEREM
CALFOS RAFIAT AMOPE 24/10MSC063 COMPUTER SCIENCE
OGUNTOYINBO TOMIWA 24/05BLL143 MEDICAL LABORATORY
MAXWELL SCIENCE
ADENIJI ADEJUMOKE 24/05PHP048 PUBLIC HEALTH
GODHERITAGE
FANIMEYE PRESTIGE 24/05PHP046 PUBLIC HEALTH
OLANIYI
AINA GOODLUCK 24/05PHP045 PUBLIC HEALTH
OLUWATIMILEYIN
FAKUNLE OYINADE 24/05PTP155 PHYSIOTHERAPY
ADUNOLA
AMOO DAMILOLA 24/05BLL128 MEDICAL LABORATORY
OYINDAMOLA SCIENCE
ALADEGBAIYE RICHARD 24/05PTP123 PHYSIOTHERAPY
OPEYEMI
BELLO TREASURE 24/05PTP139 PHYSIOTHERAPY
OLUWASEMILORE
OBAFUSI NEWNESS 24/10MSS087 SOFTWARE
NINUOLA ENGINEERING