ECE-1021
HOMEWORK #1
(Last Mod: 27 November 2010 21:38:40 )
In addition to the Modules, you should be reading the first four chapters in the textbook. Do not worry too much about studying the information in these chapters - just read them. Make a list of items in those chapters which are new to you and/or which you don't understand. Bring that list with you to the lecture following the first exam and be sure to ask questions about anything not covered.
You must show your work on all problems that require computation to receive credit.
The goal of this assignment is for you to gain proficiency in working with different number bases and number representations. As such, your work must reflect your ability to perform these operations, not the ability of the design team that developed your calculator. You may therefore use a calculator to perform base-10 computations only. Specifically, you may not use calculator functions that perform number base conversions or that permit you to work with numbers in any base other than decimal. You may use such functions to check your work only.
Using the method of repeated multiplication and/or division as appropriate, perform the following conversions.
10,000,000 to hex
0x1966 to decimal
1 1001 0110 0110b to decimal
47624 octal to decimal
255 to binary
0xBEAD to binary
1101 1111 1011 0101b to hex
6153427 to base-5
Represent the value in e decimal, hex, and binary to the six radix places.
Represent the value π in decimal, hex, and binary to the equivalent of at least four decimal places.
Represent the length of a light year, in inches, using normalized exponential notation in decimal, hex, and binary. The mantissa should have enough digits to represent the number to an accuracy of 0.01%.
Represent the charge of an electron, in coulombs, using normalized exponential notation in decimal, hex, and binary. The mantissa should have enough digits to represent the number to an accuracy of 0.1%.
Prepare Hexadecimal Addition and Multiplication Tables similar to that found in Module I for base-8. You may either prepare separate tables or a combined table.
Perform the following computations directly in hexadecimal. For the division problems, if the quotient is not an integer, show the result both in quotient/remainder form and also as a fixed point result to two hexadecimal places.
0xCA + 0x1D
0xCA - 0x1D
0xCA x 0x1D
0xCA / 0x1D
0xDEAD + 0xBEEF
0xDEAD - 0xBEEF
0xDEAD x 0xBEEF
0xDEAD / 0xBEEF