0% found this document useful (0 votes)
8 views3 pages

Assignement Zairi

The document outlines a homework assignment for the Computer Science department at the University of Algiers 1, consisting of exercises on number conversions and arithmetic operations in various numeral systems. It includes tasks to convert unsigned numbers into binary, octal, decimal, and hexadecimal formats, as well as perform arithmetic operations and determine values in different bases. Additionally, it requires analyzing hexadecimal numbers in specific formats and performing operations in two's complement representation.

Uploaded by

leaderkoud
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)
8 views3 pages

Assignement Zairi

The document outlines a homework assignment for the Computer Science department at the University of Algiers 1, consisting of exercises on number conversions and arithmetic operations in various numeral systems. It includes tasks to convert unsigned numbers into binary, octal, decimal, and hexadecimal formats, as well as perform arithmetic operations and determine values in different bases. Additionally, it requires analyzing hexadecimal numbers in specific formats and performing operations in two's complement representation.

Uploaded by

leaderkoud
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/ 3

University of Algiers 1 Computer Science department Structure Machine1

Homework 1: (duration 2 days) Full Name:


Note: Show all the solution steps Group:

Exercise 1 Given the following unsigned number, fill in the table by finding the equivalent values in binary,
octal, decimal, and hexadecimal. Then, perform the arithmetic operations in binary. Show all your steps
and details of the operations in the space below the table.

Numbers Decimal (10) Binary (2) Octal (8) Hexadecimal (16)


A 76.21875 1001100.00111 114.16 4C.38
B 123.5 01111011.1000 173.4 7B.8
C 45.03125 101101.00001 55. 02 2D.08
D 110.5 1101110.1 156.4 6E.8
A+B 199,71875
D– C 65,46875
D x (0.01)2 27,625

Decimal (10) Binary (2) Octal (8) Hexadecimal (16)


A

h.zairi 1
University of Algiers 1 Computer Science department Structure Machine1

A+ B D–C D x (0.01)2

Exercise 2: Determine the value of N in the following expression:

(102)4 + (35)6 + (210)5 = (N)8

Exercise 3:

Given the following hexadecimal numbers, assume they are represented in the following specific formats:

A = F8 (represented in 8-bit two's complement)

B = C4 (represented in 8-bit one's complement)

C = 5B (represented in 8-bit sign-magnitude)

1. For each number A, B, and C, find the decimal equivalent based on their given format.
2. Using the decimal equivalents:
• Represent each number in sign-magnitude form.
• Represent each number in one's complement form.
• Represent each number in two's complement form.
3. Perform the following operations in 8-bit two's complement :
▪ A+B
▪ C-A
▪ B–C
▪ AxB

For each operation, show your steps in detail, indicating if there is a carry or overflow during the calculation.

h.zairi 2
University of Algiers 1 Computer Science department Structure Machine1

Good luck

h.zairi 3

You might also like