Chapter 4 Homework

# Chapter 4 Homework - Chapter 4 Homework By: Daniel Fore...

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

Chapter 4 Homework By: Daniel Fore Lisa Henderson CSE-1284-01

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

View Full Document
September 22, 2007 Pages 231 – 237 Short Answer: 5, 6, 8 Fill-in-the-Blank: 12, 13, 15, 16, 22, 23, 24, 30 Algorithm Workbench: 31, 32, 40, 41 True or False: 42 – 45, 49, 54 – 57 Find the Errors: 58, 59, 62 – 66 Programming Challenges: 4 Short answer #5: The “&&” takes two expressions as operands and creates an expression that is true only when both sup-expressions are true. #6: The “||” takes two expressions as operands and creates an expression that is true when either of the sub-expressions are true. #8: So they themselves, or any other coder that looks at their code, will understand which conditional statement goes with which statement.
Fill-in-the-Blank #12: false #13: true #15: true; false #16: default #22: AND #23: OR #24: #30: A. True B. False C. False D. True Algorithm Workbench #31: if ( y == 0) x = 100; #32: if ( y == 10 )

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

View Full Document
x = 0; else x = 1; #40: switch(choice) { case 1: cout << fixed << showpoint << setprecision (2) << endl;
This is the end of the preview. Sign up to access the rest of the document.

## This note was uploaded on 09/15/2009 for the course CSE 1284 taught by Professor Henderson,lisa during the Fall '07 term at Mississippi State.

### Page1 / 7

Chapter 4 Homework - Chapter 4 Homework By: Daniel Fore...

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

View Full Document
Ask a homework question - tutors are online