- Convert the base 10 number 102 to base 2.
- Find the 8-bit two's complement representation of each of the following
(your answer to #1 will help):
- 102 ________________________________________
- -102 ________________________________________

- 102 ________________________________________
- Convert the base 10 number 508 to base 9:
- Find the base 10 value of each of the following 8-bit two's complement
numbers:
- 11011101
- 01110100

- 11011101
- Convert the base 8 number 3275
_{8}to- base 10
- base 2 (using the special relationship between base 8 and base 2)

- base 10
- What is the largest positive base 10 integer (unsigned -- all places are
used for the number with no sign) that can be represented in four base
6 digits? Write both the 4-digit base 6 number and find its value in base 10.
- The 8-bit two's complement representation of 107 is 01101011 and the
representation of 52 is 00110100.
- Find the 8-bit sum (two's complement) of 107 and 52.
0 1 1 0 1 0 1 1 + 0 0 1 1 0 1 0 0 ------------------ <---- your answer __________________

- Convert the answer to base 10 (remember the answer is a two's
complement number).
- Did overflow occur? Explain.

- Find the 8-bit sum (two's complement) of 107 and 52.
- Suppose
*gpa*is a variable containing the grade point average of a student. Suppose the goal of the program is to let a student know if he/she made the Dean's list (the gpa must be 3.5 or above). Write an*if... else...*statement that prints out the appropriate message (either "Congratulations -- you made the Dean's List" or "Sorry you didn't make the Dean's List"). - As activity directory at Lake Lazydays Resort, it is your job to
suggest appropriate activities to guests based on the weather.
You recommend that when the temperature is greater than 95 or less than
20 people should visit the resort shops. Otherwise you recommend the
following activities:
temp >= 80: swimming 60 <= temp < 80: tennis 40 <= temp < 60: golf 20 <= temp < 40: skiing

Fill in the blanks in the code below as directed in the comments. The if should be a cascading if with conditions that are no more complicated than necessary.int temp; System.out.println("What's the temperature today?"); temp = scan.nextInt(); // Declare a boolean variable

*extremeTemp*and assign it an // expression that is true when the temperature is greater than 95 or // less than 20 __________________________________________________________________________; // Complete the cascading if (points will be deducted for unnecessary // comparisons - use the boolean variable declared above where appropriate) if ( __________________________________________ ) System.out.println ("Visit our shops!"); else if ( _______________________________________________ ) System.out.println("How about a dip in the pool?"); _______________________________________________________ System.out.println("Go grab a racquet!"); _______________________________________________________ System.out.println("It's a perfect day for golf."); _______________________________________________________ System.out.println("Let's hit the slopes!");