CS116 Chapter Notes - Chapter 8: Software Engineering, Binary Search Tree, For Loop

78 views9 pages

Document Summary

If the continuation test is true, execute the loop body. If the continuation test is false, do not execute the loop body. After completing the loop body, evaluate the continuation test again. The body usually includes a mutation of variables used in the continuation test. When the loop body should be executed, or when it should stop. What variables must be updated in the loop body so the loop will eventually stop. When ther actions are needed within the loop body. These can be determined in any order just fill the template. It is impossible to wrote a program that identifies if a loop will run indefinitely. The code will eventually be terminated with an error it isn"t really infinite. Include tests, when possible, for which the body executes. If the continuation test involves multiple conditions, test each way that the loop may terminate.

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers

Related Documents