COSC 2406 Assignment 1
COSC 2406 Assignment 1
You must show all required calculation steps for each question. Answers with missing or
insufficient supporting work will be graded as incorrect. Separate all binary numbers in
groups of 4 bits, with exception of any floating point values: Put them in proper
grouping.
Do not convert to ANY base, unless specified in the question - the numbers must stay in
the base they were originally given to you. Show the carry bit in all cases - even if it is
zero. Do the questions using the same processes discussed in class - any other
processes will be marked as incorrect.
Start Early! There are a lot of math operations in this assignment: it will be easier to start early
and do the questions a bit at a time. Do not wait until the day this assignment is due to start
it - you will not be given extra time! Read the submission instructions on the next page!
Number Sets A B C D
Set 6: Binary Real 0 01111011101 0010 0101 0101 1001 1000 0110 0001 0110 1101 1101
1001 1111 0001
Assignment Questions:
1. 16 pts. Using the set of decimal in Set 1, convert each to:
a. Binary, and
b. Hexadecimal
2. 16 pts. Using the set of binary and hexadecimal numbers in Sets 2 and 3, calculate:
a. The two’s complement of each binary number, and
b. The 16’s complement of each hexadecimal number
3. 12 pts. Using the set of binary numbers in Set 2, convert each to:
a. An unsigned decimal number,
b. A signed decimal number, and
c. A hexadecimal number
4. 8 pts. Using the set of binary numbers in Set 2, do the following signed or bitwise
operations:
a. A + B,
b. A - C,
c. B OR C,
d. C AND D
5. 16 pts. Using the set of hexadecimal numbers in Set 3, convert each to:
a. A binary number and
b. An unsigned decimal number
6. 8 pts. For each address pair in Set 4, calculate the linear address. Your result must be
20 bits (5 hexadecimal digits), and reported in hexadecimal.
7. 10 pts. For the decimal real in Set 5, answer the following questions:
a. 1 pt: What is the sign bit, and what sign does it represent?
b. 1 pt: What is the binary value of the whole number part? Show all conversion
steps.
c. 2 pts: What is the binary value of the fractional part? Show all conversion steps.
Identify the correct repeating pattern, if one exists.
d. 2 pts: What is the normalized representation of the number, in binary?
Remember the sign and the biased exponent value (in decimal, in 2x format).
e. 2 pts: What is the biased exponent value, in binary? Show the bias calculation
and all conversion steps.
f. 2 pts: Write the entire IEEE Single Precision format, with proper spacing.
● The Single Precision format is 1 sign bit, 8 exponent bits, and 23 significance
bits.
● The Single Precision exponent bias value is 127.
8. 10 pts. For the double precision value provided in Set 6, answer the following:
a. 1 pt: What is the sign?
b. 1 pt: What is the biased exponent value?
c. 1 pt: What is the unbiased exponent value? What does it tell you?
d. 2 pts: Write the normalized representation of the number, including the sign and
biased exponent value (in decimal, in 2x format).
e. 1 pt: Write the unnormalized representation of the number, including the sign.
f. 1 pt: What is the decimal value of the whole number part? Show all conversion
steps.
g. 2 pts: What is the decimal value of the fractional part? Show all conversion steps.
h. 1 pt: What is the real value in decimal, to two digits after the decimal in standard
scientific notation, including the sign?
● The double precision format is 1 sign bit, 11 exponent bits and 52 significance
bits.
● The double precision exponent bias value is 1023.
Copyright © 2024-2025 by Prof. Johnny Console, Algoma University.
All rights reserved. No parts of this work may be reproduced by any means without prior written
permission from the author.
COSC 2406 - Assignment 1
9. 4 pts. Construct a boolean logic table, using only 1’s and 0’s for the expression:
(𝐴𝐶 + ~𝐵) ⊕ (~𝐴 + 𝐵𝐶), Show all steps, and Remember the precedence order.
Submission Instructions:
Complete your assignment questions on paper - no typed submissions will be accepted. Be
sure to include all calculation steps for each question. Make sure your work is legible: if
your work cannot be read, it will be graded as incorrect. You are free to do the questions in any
order you want - Ensure they are properly labeled with the question number and letter (if a
question has multiple parts). Scan your work to a PDF file and upload it to the LMS before the
deadline.