1.What are the four parts of a count-controlled loop? 2. Give two reasons why pretest loops are…

1.What are the four parts of a count-controlled loop? 2. Give two reasons why pretest loops are…


1.What are the four parts of a count-controlled loop? 2. Give two reasons why pretest loops are…

1.What are the four parts of a count-controlled loop?

2. Give two reasons why pretest loops are more commonly used than posttest loops.

3. Write the loop-exit code that loops until the value of integer variable Event_Count equals 25. (p. 238) 4. Write the code for a sentinel-controlled loop that loops until a negative value of the integer variable Course_Number is read.

 

1.What are the four parts of a count-controlled loop? 2. Give two reasons why pretest loops are…