Introduction To Computing (CSE145) Fall 2009 Assignment # 2 Handed to students: Due Date: Instructor: Class: September 24, 2009 September 28, 2009 Asma Sanam Larik BS-1 Introduction: This document outlines the assessment arrangements for the Assignment#2 for CSE145 Introduction to Computing. For this assignment the students are required to submit the solutions hand written on stapled sheets. All the steps should be done properly. Single line answer would be marked as incorrect. Topic Covered: Number Systems including Hexadecimal, Octal and Binary Number System Note: Late submission under any circumstances is not allowed. It is strongly recommended that you attempt and submit all the questions. Exercises: Question # 1 : Convert these binary numbers to decimal: a.10101 b.1101000111101 c.10010110 d.101010101010 e. 101011111 Question # 2 : Convert the following decimal values to binary: a.58 b.2032 c. 5696 d.2688 e.1652 f. 2313 g.3.578 h. 123.750 Question # 3: Convert the following octal numbers to decimal: a.743 b.365 c.3777 d.257 e.1204 Question # 4: Convert the following decimal values to octal: a.59 b.65536 c.255 d.375 e.819 f .76524 Question # 5: Convert the following hex values to decimal: a.92 b. FF c.2C1 d.37FD e.1B9 Question # 6: Convert the following decimal values to hex: a.75 b.314 c.4095 d.25619 e.65760 Question # 7: Add the following binary numbers: a.1010 + 1011 b. 0.1011 + 0.1111 c. d.1011.1101 + 11.1 e. 10011011 + 10011101 1111 + 0011 Question # 8: Subtract the following binary numbers: a.101011100 – 11101110 b.101010100 – 1111000 c.111100000 – 10101111 d.100000111 – 000001101 Question# 9: Convert the following numbers with the indicated bases into decimal: a. (4310)5 b. (6241) 7 c. (85231)9 d. (AB36)16 e. (7D5C)16 Question 10 : Perform the following operations: a. b. c. d. e. f. g. h. i. (4817)16 + (792B)16 7925116 + 3A1E116 CD6616 + B23A16 D42316 – A99916 14028 + 25378 0110011112*011010102 101516 * F216 3268 * 668 (A5B6)16 – (58D)16 Good Luck