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

Dcit 102 Assignment

Uploaded by

michaelachel43
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)
35 views9 pages

Dcit 102 Assignment

Uploaded by

michaelachel43
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

DCIT 102 ASSIGNMENT

1. Explain complement arithmetic and its importance in computation.


a. The compliment arithmetic is a method of representing negative numbers in binary
form. The compliment arithmetic is important in computation because it aids in the
efficient aid in the representation of negative numbers
2. Compute DFDA (base16)-BECE (base16) +66571(base8) using the signed magnitude
representation.

First, we convert all of them to binary.

DFD4 (base16) =1101111111010100

BECE (base16) = 1011111011101110

66571(base8) =110110110101111001

= 1101111111010100 –1011111011101110+110110110101111001

= 10010001011000011 (base2)

3. Evaluate the expression in Q2 above using 1’s compliment.

We have to convert each number to binary then calculate their 1’s compliment then
compute the results

1101111111010100 = 1101111111010100(base 2) it stays the same since it is positive

1011111011101110 = 0100000100010001

110110110101111001 = 001001001010000110

1101111111010100 – 0100000100010001 + 001001001010000110 = 10010001011000011(base


2)

4. Comment on the two solutions; Q2 and Q3 and justify the results from both cases.
In Q2, the result was obtained by performing binary addition and subtraction directly and the
result was positive since the most significant bit was 0. For Q3, the results were obtained by
converting each number to its one’s compliment representation then performing binary
addition.
Justification:
Both solutions produced the same result which was also positive in both cases and this affirms
the validity of the calculations in both solutions.
5. Compute the value of 110111001101110(base2) – 111110100001101(base2) using 10s
compliment.
To find the 10s compliment, we first find the decimal form of these numbers.
110111001101110(base2) = 28270
111110100001101(base2) = 32026
= 28270 – 32026
= -3756
To deal with the negative, we use 10s compliment of the bigger number, 32026 which is
a 5-digit number and the biggest 5-digit number is 99999
Therefore;
= 99999 – 32026
=67973
We then add 67973 to 28270
= 67973 + 1
= 67974
Now we add 28270 to 67974
= 28270 + 67974
=96244
= 96244-100000 = -3756
Therefore, 28270 – 32026 = -37

-3756 = 1111000101001100 (base 2).

6. Discuss the following number system codes with at least 2 practical applications in computing.

A. BCD

The BCD (Binary coded decimal) is used in representing each decimal digit with its
corresponding 4-bit binary equivalent.

Practical application:

a. It is used in digital clocks and calculators to represent time.


b. It is also often used in data entry systems where numerical inputs are required for
processing.

B. Gray codes

This is a binary numeral system where two successive values differ in only one bit.

Practical applications:

a. It is used in analogue to digital converters to minimize errors during the conversion


process.

b. The gray codes is also used in mechanical systems with position sensors, to help in
accurately reading the position.

C. Excess 3 codes

The excess 3 code is a binary coded decimal system where each decimal is represented
by its 4-bit binary value increased by 3
Practical applications:

a. The Excess 3 codes simplify the design of digital systems that perform arithmetic
operations of digital system

b. It is often used in educational setting to teach the principles of binary arithmetic and
code conversion.

D. Sequential codes

These are a sequence of codes where the code for each number is one greater than the
previous number.

Practical applications:

a. it is used in inventory managements to assign sequential codes to items for easy


tracking

b. It is also used in pipeline processing within CPUs to ensure that instructions are
executed in the correct order

E. Error correction codes

The Error correction codes are codes that enable the detection and correction of errors
within storage or data transmission.

Practical applications:

a. it is essential in wireless communication systems to correct errors caused by signal


interference and ensure reliable data transmission.

b. It is also implemented in optical storage media such as CDs to maintain data integrity.

F. Hamming codes.

These are a family of linear error correction codes that detect and correct single bit
errors.

Practical application:

a. It is employed in data transmission systems to detect and correct errors during data
transfer over unreliable connections
b. They are also used in Error correction code memory to detect and correct single bit
errors.
G. Reflective codes.

These codes are such that they are symmetrical with respect to a center value where
each number’s compliment is also a valid code.

Practical application:

a. It is used in designing error resistant digital circuits.


b. In Robotics, they are used in position encoders to accurately determine the position
of the robotic components.

H. 2421 codes

It is a weighted binary code used to represent decimal numbers where the weights are
2,4,2, and 1 respectively.

Practical application:

a. It is used in digital systems to represent decimal numbers uniquely.


b. It also helps detect errors in digital communication systems.

J. EBCDIC and ASCII codes.

These codes, the Extended Binary Coded Decimal Interchange code and the American
Standard Code for Information Interchange, are character encoding codes.

Practical applications:

a. The EBCDID is primarily used in IBM mainframe and midrange systems for encoding
text data.
b. The ASCII is used in internet protocols to encode text-based data for
communication.

You might also like