COSC 175 Lecture Notes - Lecture 10: While Loop, Initial Condition

67 views3 pages

Document Summary

Other terms: body statements to be repeated. Minimum number of times doing the body is 0. Minimum number of times doing the body is infinite: control statement decides whether another repetition needs to be made, in place of the body. If true then you do the body and check again to see if control statement is true. Keep repeating as long as control statement is true. If false then it stops to be corrected: leading decision loop control statement before body. Minimum number of times doing the loop is 1. Have to read the body at least once: trailing decision loop control statement after body. Minimum number of times doing the loop is infinite times: counted loop for, logical loop while or do while. Why would one never read a file: if the file is empty, no point wasting time to type anything.

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