Problem
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.
4. Write the code for a sentinel-controlled loop that loops until a negative value of the integer variable Course_Number is read.