Ask Question
14 March, 16:16

Write a pseudo code algorithm which asks a user to enter a number between 5 and 20. If they enter a number outside this range, the program asks them repeatedly to re-enter the number until they enter a valid number.

If a valid number n is entered, the program asks the user to enter n temperatures (all integer values), then calculates and outputs the average temperature.

+4
Answers (1)
  1. 14 March, 18:38
    0
    Do

    ask for input

    while input less that 5 or more than 20

    set total to 0

    loop input times

    get temp

    add temp to total

    end loop

    output total/input
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “Write a pseudo code algorithm which asks a user to enter a number between 5 and 20. If they enter a number outside this range, the program ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers