Ask 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 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 September, 19:47
    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 & 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