{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

cse-110-homework-2-2

# cse-110-homework-2-2 - (NOT A AND(B XOR C 3 Write a for...

This preview shows page 1. Sign up to view the full content.

Name: Student ID # CSE 110 Homework 2 Due: Monday, October 18, at the start of class. Homework 2 should be turned in on paper . This assignment is worth a total of 12 points. You must show all work in order to receive any credit for your solutions. 1. Decode the following bit pattern using the following floating-point format: 1 sign bit, 8 bits of exponent (the bias is 127), and 23 bits of mantissa. (3 points) 1100 0010 0100 1011 0000 0000 0000 0000 2. Draw a diagram that uses Boolean gates to implement the following expression: (3 points)
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: (NOT A) AND (B XOR C) 3. Write a for loop in Java that prints the integer values from 1 up through n , counting by inc . ±or example, if n is 25 and inc is 5, the loop would print the sequence 1 6 11 16 21 You may assume that the integer variables n and inc have already been declared and assigned values. Just write the code for the for loop! (4 points) 4. Translate -32 (base 10) into 8-bit two ʼ s complement representation. (2 points)...
View Full Document

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern