Write a pseudocode 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. [6]