ENGINEER 1D04 Final: chapter 8 (3)

77 views1 pages
scarletotter976 and 37168 others unlocked
ENGINEER 1D04 Full Course Notes
4
ENGINEER 1D04 Full Course Notes
Verified Note
4 documents

Document Summary

for loop: is a definite loop, which means the number of iterations is determined when the loop starts. While loop: is an indefinite loop, it continues to iterate as long as the loop condition is true. the general form of while loop while : Interactive loop: allows the user to repeat certain portions of a program on demand. Sentinel loop: continues to process data until reaching a special value that signals the end. Boolean operators are (and, or ,and not). Input validation: it continues until the user enters a valid value. Review questions: f, while loop is an indefinite loop, t, t, t, f, sentinel loop, f, t, t, t, t.