Assignment 2

.docx

School

University of Maryland, Baltimore County *

*We aren’t endorsed by this school

Course

310

Subject

Electrical Engineering

Date

Apr 3, 2024

Type

docx

Pages

2

Uploaded by CorporalGerbil3027

Assignment 2 You must show your work for credit. Question 1 (2 points) Add the following binary numbers: 10011001 101110 1000011 11101 provide your answer in binary. 110110111 Question 2 (6 points) An Analog to Digital Converter (ADC) chip typically uses one byte for providing data. Maximum voltage is represented by all bits set to high (1) and minimum voltage is all bits set to low (0). What is the binary representation for the maximum voltage? 11111111 What is the decimal value for the maximum voltage? 2^7 + 2^6 + 2^5 + 2^4 + 2^3 + 2^2 + 2^1 + 2^0 = 255 What would the hex value be for voltage at the 50% level? 255*50% = 127 = 127/16 = 7 with a remainder of 15. The hex value is 7F. Question 3 (12 points) Match each type of data to the most appropriate computer number representation. Distance to the Sun -Floating Point JPEG Number of items in Inventory -Integer mpg Status of a single push button -Boolean Floating Point Alphanumeric character -Unicode Integer Photographic Image -JPEG Boolean Audio Recording -MPG Unicode Question 4 (4 points) You MUST show your work for credit.
Using 8 bit notation, provide the ones complement representation for +9 = 00001001 Using 8 bit notation, provide the ones complement representation for -9 = 11110010 Question 5 (4 points) You MUST show work for credit. Using a twos complement representation of an 4-bit binary number, show a binary representation of subtracting 9 from 15 and demonstrate that you get the correct answer by converting back to decimal. 9 = 1001 + 1 = 0111 15 = 1111 1111 + 0111 --------------- = 0110 0 * 2^3 + 1 * 2^2 + 1 * 2^1 + 0 * 2^0 = 0 + 4 + 2 + 0 = 6 Question 6 (2 points) Provide the secret phrase represented by the following UNICODE (be sure to use appropriate case sensitivity and spaces]: \u0049\u0053\u0033\u0031\u0030\u0020\u0069\u0073\u0020\u0066\u0075\u006e IS310 is fun
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help