0% found this document useful (0 votes)
16 views9 pages

Group Three - Assignment Two-3

The document contains a series of problems and solutions related to number systems, including conversions between binary, octal, decimal, and hexadecimal formats, as well as calculations using two's complement. It also discusses the representation of negative numbers and the limits of various bit systems. Additionally, it includes a list of group members with their names, matriculation numbers, and departments.

Uploaded by

newnessking30
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views9 pages

Group Three - Assignment Two-3

The document contains a series of problems and solutions related to number systems, including conversions between binary, octal, decimal, and hexadecimal formats, as well as calculations using two's complement. It also discusses the representation of negative numbers and the limits of various bit systems. Additionally, it includes a list of group members with their names, matriculation numbers, and departments.

Uploaded by

newnessking30
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

GROUP THREE_ASSIGNMENT TWO

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

Therefore, the answer to binary is 011101012.


To octal: Octal (base 8), we will group the binary numbers in set of three,
from left to right.
11710=011101012, since it should be grouped into three places (23) 011 101
01, since the last three is not up to three element and we are to group from
the left to right, therefore we introduce 0 to the last element 001 110 101.
From the table 001=1, 110=6, 101= 5.
11710=1658
To hexadecimal: from the above solution 11710 is 011101012, therefore, to

get the hexadecimal equivalent, it will be parted into two, of which it will

be 4bits.

0111 0101, by which from the table 0111=7 and 0101=5.

Therefore, 11710 =7516.

2. 9 8 F A 2

1001 1000 1111 1010 0010

B 1 1 9 4

1011 0001 0001 1001 0100

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

Therefore, we are to part the element (1010010100001001101102) into four bits

each, from the right to the left. 0001 0100 1010 0001 0011 0110, we

introduced zeros to have a complete four bit at the leftmost side,

From the table 0001 0100 1010 0001 0011 0110

1 4 A 1 3 6

THEREFORE: 98FA216 + B119416 = 14A13616.

3. 2’S complement of 100111012

Using register of size 9 in order to show that the number is positive.

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)

4. Using 6-bits two’s complement to represent -21.

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

the maximum value. Since highest number of pitches is 172

28=256

256 128 64 32 16 8 4 2 1

Therefore, we use a register of size 9, To represent its sign we used one

more bit.

512 256 128 64 32 16 8 4 2 1 (9+1=10bits)

In total, we use a register of size 10 to represent the pitch count.

6. Decimal equivalent of 100100012

Using register of size 9

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

However, since we are using 9 bits, which is starting with 0, it remains

appositive number and the result is 145.

7. OXB3 + OXB1 = B316 + B116


We first convert the numbers to binary
B316 = B 3
1011 0011 = 101100112
B116 = B 1

1011 0001 = 101100012


Then we do its 2’s complement
128 64 32 16 8 4 2 1
1 0 1 1 0 0 1 1 =B316
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
Since the original number is negative, 0XB3=-7710

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

Since the original number is negative, 0XB1=-7910

0XB3+0XB1=-77+(-79) =-15610

In 8-bit two’s complement, the representable range is -128 to 127


Therefore -156 is out of range, the result cannot be represented in 8-bit

two’s complement.

The answer is NO.

8. using 5-bits two’s complement


The range is determined by the formular: -2(n-1) to 2(n-1)-1
Maximum positive value = 2(n – 1) -1=2(5-1) -1= 24 -1 = 16 – 1 =15
Minimum negative value = -2n-1 =-25-1= -24 = -16
Therefore, range of integers represented with a single 5-bits quantity is -16
to 15.
9. 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.

10.0XB3 + 0X47=B316 + 4716

B 3

1011 0011 101100112


128 64 32 16 8 4 2 1
1 0 1 1 0 0 1 1 =B316

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

Since the original number is negative, B316=-7710

4 7

0100 0111 010001112

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

13.Using 8-bit two’s complement


OXBB-8=BB16-8
B B
1011 1011 101110112
128 64 32 16 8 4 2 1
1 0 1 1 1 0 1 1 =BB16
0 1 0 0 0 1 0 0 (one’s complement)
+ 1
0 1 0 0 0 1 0 1 =64+4+1=6910
Since the original number is negative, OXBB=-6910
Subtract 8 in decimal
OXBB-8 =-6910-810 =-7710
14.In 8-bit two’s complement system, the smallest (most negative) that can be
represented by using formular: -2(n-1)
-2(n-1) =-2(8-1) =-27=-128
Therefore, it ranges from -128 to 127.
15.1’s complement is a method used to find negative equivalent of a number
in binary.it is obtained by inverting all the bits of a binary number (changing
0s to 1s and 1s to 0s).

✓ 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

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy