Ask Question
5 January, 06:52

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.

+3
Answers (1)
  1. 5 January, 09:08
    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?
Get 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 & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers