This preview shows page 1. Sign up to view the full content.
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
This note was uploaded on 12/06/2011 for the course CSE 110 taught by Professor Shaunakpawagi during the Fall '08 term at SUNY Stony Brook.
- Fall '08