Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Chapter Review pa Quick Review Go to pg. 326 2. The syntax of the while statement is: 1. C++ has three looping (repetition) structures: while,
Chapter Review pa Quick Review Go to pg. 326 2. The syntax of the while statement is: 1. C++ has three looping (repetition) structures: while, for, and do.. while. M while (expression) O (1 statement AA 3. In C++, while is a reserved word. 4. In the while statement, the parentheses around the expression ( decision maker) are important; they mark the beginning and end of the expression. 5. The statement is called the body of the loop. 6. The body of the while loop must contain a statement that eventual sets the expression to false. 7. A counter-controlled while loop uses a counter to control the loop 8. In a counter-controlled while loop, you must initialize the counter before the loop, and the body of the loop must contain a statement that changes the value of the counter variable. 9. A sentinel is a special value that marks the end of the input data. The sentinel must be similar to, yet differ from, all the data items. 10. A sentinel-controlled while loop uses a sentinel to control the loop
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started