Chapter 4 Homework

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

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

View Full Document Right Arrow Icon
Chapter 4 Homework By: Daniel Fore Lisa Henderson CSE-1284-01
Background image of page 1

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

View Full DocumentRight Arrow Icon
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.
Background image of page 2
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 )
Background image of page 3

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

View Full DocumentRight Arrow Icon
x = 0; else x = 1; #40: switch(choice) { case 1: cout << fixed << showpoint << setprecision (2) << endl;
Background image of page 4
Image of page 5
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 Right Arrow Icon
Ask a homework question - tutors are online