ITM 200 Chapter 7: Chapter 7

95 views4 pages

Document Summary

7. 2 nesting of if-else and while statements: example of a program on pg 143-145. Indentation: when writing programs with nested control structures, it becomes even more important to use consistent indentation, this makes the program much easier to understand and facilitates debugging and modification. 7. 3 the single-branch if statement: sometimes you want your programs to choose, not between 2 alternative actions but between 1 action and doing nothing. In this case you can use a single-branch if statement: example on pg 145-146. Single-branch if statement: syntax, if () www. notesolution. com, is true is performed and rest of program continues, if is false is not performed and rest of program continues. 7. 4 dry running programs containing nested while and if-else statements: dry running a program is important when programs become more complicated and it helps to understand and debug the program (ex. 7. 5 the do-while loop statement: problem on pg 150-151.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents

Related Questions