Final answer:
An algorithm in pseudocode to input a number between 0 and 100 inclusive, and display an error message if the number is outside this range.
Step-by-step explanation:
To input a number between 0 and 100 inclusive, you can use the following algorithm in pseudocode:
- Prompt the user to enter a number.
- Read the input number.
- If the number is less than 0 or greater than 100, display an error message.
- Otherwise, continue with the desired operations on the input number.
For example:
Prompt the user: "Enter a number between 0 and 100:"
Read the input number
If number < 0 or number > 100:
Display "Error: Number must be between 0 and 100."
Else:
Continue with desired operations