Ask Question

n the case of the sentinel-controlled while loop, the first item is read before the while loop is entered. True False

+4
Answers (1)
  1. 9 October, 08:42
    0
    True

    Explanation:

    Sentinel-controlled repetition is often called indefinite repetition because the number of repetitions is not known before the loop begins executing. A sentinel value must be chosen that cannot be confused with an acceptable input value.

    The pseudocode for a sentinel-controlled while loop look like this:

    Prompt the user to enter the first input Input the first value (possibly the sentinel) While the user has not yet entered the sentinel Execute some statement block Prompt the user to enter the next grade Input the next grade (possibly the sentinel)
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “n the case of the sentinel-controlled while loop, the first item is read before the while loop is entered. True False ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers