CS501 Assignment No. 5 Solution
Page 1 of 1 • Share
CS501 Assignment No. 5 Solution
Q: 1 Convert the following base12 numbers to decimal numbers. Assume that
they are unsigned.
1. 9A6B12
x = 0
x = x + 9 = 9
x = 12x9 + A = 118
x = 12x118 + 6 = 1422
x = 12x1422 + B = 17075
So, 9A6B12 = 1707510
2. AABB12
x = 0
x = x + A (=10) = 10
x = 12x10 + A (=10) = 130
x = 12x130 + B (=11) = 1571
x = 12x1571 + B (=11) = 18863
So, AABB12 = 1886310
Q: 2 Convert the following base10 number to base2 number.
1. 0.7510
0.75x2 = 1.5, f-1 = 1
0.5x2 = 1.0, f-2 = 1
So 0.7510 = (0.11)2
Q: 3 Convert the following base16 number to decimal number.
1. 0.ABC16
F = 0
F = (0 + 12) / 16 = 0.75
F = (0.75 + 11) / 16 = 0.734375
F = (0.734375 + 10) / 16 = (0.6708984)10
they are unsigned.
1. 9A6B12
x = 0
x = x + 9 = 9
x = 12x9 + A = 118
x = 12x118 + 6 = 1422
x = 12x1422 + B = 17075
So, 9A6B12 = 1707510
2. AABB12
x = 0
x = x + A (=10) = 10
x = 12x10 + A (=10) = 130
x = 12x130 + B (=11) = 1571
x = 12x1571 + B (=11) = 18863
So, AABB12 = 1886310
Q: 2 Convert the following base10 number to base2 number.
1. 0.7510
0.75x2 = 1.5, f-1 = 1
0.5x2 = 1.0, f-2 = 1
So 0.7510 = (0.11)2
Q: 3 Convert the following base16 number to decimal number.
1. 0.ABC16
F = 0
F = (0 + 12) / 16 = 0.75
F = (0.75 + 11) / 16 = 0.734375
F = (0.734375 + 10) / 16 = (0.6708984)10
Bano Zulaikha- Monstars
-
Posts : 20
Join date : 2011-06-27
Age : 43
Character sheet
Experience:
(5/5)
Similar topics
» CS501 Assignment # 03 Solution Spring 2013
» CS501 Advanced Computer Architecture Assignment # 4 Solution Spring 2013
» CS501 Current Assginment Solution
» MGT 431 Assignment No. 1 Solution
» ENG 301 Assignment No. 1 Solution
» CS501 Advanced Computer Architecture Assignment # 4 Solution Spring 2013
» CS501 Current Assginment Solution
» MGT 431 Assignment No. 1 Solution
» ENG 301 Assignment No. 1 Solution
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
Yesterday at 12:21 pm by ali001
» Hemangiom'App
Tue Nov 05, 2024 11:25 am by ali001
» MindfulMe - Mental Health App
Mon Nov 04, 2024 10:50 am by ali001
» Learn Candlestick Patterns
Tue Oct 15, 2024 5:51 am by ali001
» Woh Pagal Si Episode 52 to 62 - Top Pakistani Drama
Sat Sep 21, 2024 6:26 pm by Mir Emmad Ali Khan Domki
» Nearu - share your socials
Sat Sep 21, 2024 1:12 pm by ali001
» Nightclub Tycoon: Idle Empire
Thu Sep 19, 2024 9:16 pm by ali001
» Carnivore - Meat Diet Recipes
Wed Sep 18, 2024 2:37 pm by ali001
» Eid Milad un Nabi Mubarak 2024 (Rabiʻ I 14, 1446 AH)
Tue Sep 17, 2024 3:44 pm by Mir Emmad Ali Khan Domki