# hw2 - CS16 W11 UCSB LabHW2 Worth 50 of Lab02 score(50 total...

This preview shows pages 1–2. Sign up to view the full content.

CS16, W11, UCSB LabHW2: Worth 50% of Lab02 score (50 total points) Print this form, staple loose pages together, and write your answers on it. Accepted: on paper, at the *beginning* of *your* lab section on Thursday, January 20. Place on the front desk as you walk in, before getting seated. No email submission allowed. Name (2 pts): ______________________________________ Umail (2 pts): [email protected] Lab Section (2 pts) Circle one: 3:30 4:30 5:30 6:30 Read to the end of Chapter 2 in the Etter text. Then answer the following questions. 1. First do the "Practice!" exercises on page 46 and check your answers in the back of the text (this time we look up the location for you - it is page 410). Then focus on these statements from problem 2 of those exercises: int a = 27, b = 6; float c; ... c = a / (float)b; a. (6 pts) What is the meaning and what is the effect of the `(float)b` part of the last statement above? b. (2 pts) What would be the resulting value of c without the `(float)`

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### Page1 / 2

hw2 - CS16 W11 UCSB LabHW2 Worth 50 of Lab02 score(50 total...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online