Assessment 2 - Individual Assignment CSC159
Assessment 2 - Individual Assignment CSC159
Section A
● I confirm that I have read and shall comply with all the terms and conditions of the UiTM
plagiarism policy.
● I confirm that the online submission had also been sent accordingly with the attachment
through the UFUTURE UiTM, and I had already checked the submission regularly before
submission. Any problem due to the submission will be bare on our responsibilities.
● We declare that this assignment is free from plagiarism and is our own properly derived work.
● We further confirm that the same work, where appropriate, has been verified by
anti-plagiarism software: (Please insert if applicable).
2. Solve the addition and subtraction for the following unsigned number. Show your
work.
(20 Marks)
i. 313378 + 47358
ii. 9𝐴11𝐵16 + 𝐵164𝐶16
iii. 1110 01102 + 0100 01112
iv. 500235910 + 33866410
v. 1110 00102 − 0111 00112
vi. 662438 − 544728
vii. 10𝐶4𝐴316 − 85𝐵1𝐷16
viii. 388901010 − 5849710
ix. 𝐵11𝐷𝐸316 + 5𝐴1𝐶416
x. 3110528 − 731428
3. Manually convert the following numbers to the stated number’s bases. The answer
should be in a maximum of 6 decimal places.
(10 Marks)
i.
30
8
to binary number
10
4. Perform the addition and subtraction below using 2’s complement representation.
(10 Marks)
i. 75910 − 95110, if the basic unit is in word (16 bits binary number)
ii. 7910 − 4410, if the basic unit is in byte (8 bits binary number)
iii. 390010 − 65410, if the basic unit is in word
iv. 9710 − 10410, if the basic unit is in byte
v. 0110 01002 − 0101 10012
vi. 0111 0011 0110 11102 − 0010 1101 1100 10012
vii. 124010 − 235610, if the basic unit is in word
viii. 5310 − 2810, if the basic unit is in byte
ix. 0010 01012 − 0011 11012
x. 0000 1011 0110 11102 − 0000 0101 1110 10102
5. Convert the following decimal number using a 32-bit IEEE single-precision floating
point into a hexadecimal number.
i. − 27. 523437510
ii.
− 78
16
(5 Marks)
10
i. 42𝐷4𝐹00016
ii. 𝐵𝐹36000016 (5 Marks)
END OF QUESTIONS