We have been working very hard since 2009 to facilitate in learning Read More. We can't keep up without your support. Donate.

www.vustudents.ning.com

 www.bit.ly/vucodes + Link For Assignments, GDBs & Online Quizzes Solution www.bit.ly/papersvu + Link For Past Papers, Solved MCQs, Short Notes & More

# CS501 Assignment No 5 Solution & Discussion Due Date: 24-01-2012

Question No 1

Marks: 5

According to the Radix conversion algorithm, convert 49210 to base 16 (Write down all the steps which are involved in conversion).

 Question No 2 Marks: 5

According to the Radix conversion algorithm, convert the hexadecimal number D416 to base 10 (Write down all the steps which are involved in conversion).

+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)

+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)

Views: 1026

### Replies to This Discussion

For complete assignment see the attached file please

Attachments:

see the page # 333 and 334. assignment solved simply

adonis plzzzzzzzzzz solved assignment i wat.....

bhai plzz send the solution file thanks

Page # 314 Example 1;;;

Muhammad Shiraz plzzzzzzz solved ...................this assignment

bhai plzz send the solution file thanks

bhai plzz send the solution file thanks

As salam O alikum

Solution of Q 1

According to the algorithm

492/16 = 30 (rem = 12),   x0 = 12

30/16 = 1 (rem = 14),   x1 = 14 and x2 = 1

So 49210 = 1EC16

Q 2

X = 0

X = x + D (= 13) = 13

X = 16 * 13 + 4 = 212

So   D413 = 21210

Thanks

q1=Solution:
492/16=30(rem=12), x=12=c
30/16=1(rem=14), x1=14=14, x2=1
Thus 49210 =1EC 16
q2=Solution:
X=0
X=x+D(=13)=13
X=16*13+4=212
D416=21210

Helping Material

Number Systems and Radix Conversion ALSU is a combinational circuit so inside an ALSU, we have AND, OR, NOT and other different gates combined together in different ways to perform addition, subtraction, and,
or, not, etc. Up till now, we consider ALSU as a “black box” which takes two operands, a and b, at the input and has c at the output. Control signals whose values depend upon the opcode of an instruction were associated with this black box.
In order to understand the operation of the ALSU, we need to understand the basis of the representation of the numbers. For example, a designer needs to specify how many bits are required for the source operands and how many will be needed for the destination operand after an operation to avoid overflow and truncation. Radix Conversion Now we will consider the conversion of numbers from a representation in one base to another. As human works with base 10 and computers with base 2, this radix conversion operation is important to discuss here. We will use base c notion for decimal representation and base b for any other base. The following figure shows the algorithm of converting from base b to base c:

Example Convert the hexadecimal number B316 to base 10.

Solution

According to the above algorithm,
X=0
X= x+B (=11) =11
X=16*11+3= 179
Hence B316=17910

The following figure shows the algorithm of converting from base c to base b:

## Latest Activity

S ι у α ♡ updated their profile
3 hours ago
5 hours ago
5 hours ago
+ !! Ήලᵯᵯℹ Ⲥⱨ !! + posted discussions
5 hours ago
5 hours ago
6 hours ago
+ ⵑⵑ ӍᎥŞŞ ⲤһᵘʳһშᎥⵏ ⵑⵑ + updated their profile
6 hours ago
+ !! Ήලᵯᵯℹ Ⲥⱨ !! + liked Ammara Sabir's discussion !!!!!!Muhabbat!!!!!!
6 hours ago
6 hours ago
6 hours ago
6 hours ago
6 hours ago

1

2

3

4

5