how to write algorithm read 10 integers from the keyboard in the range 0 to 100 and count how many of them are larger than 50 and display theresult

1. Set a count variable to 0.

2. Repeat the following 10 times:
a. Read in an integer from the keyboard.
b. Check if the integer is in the range 0 to 100.
i. If not, go back to step 2a.
c. Check if the integer is larger than 50.
i. If yes, increment the count variable by 1.
3. Display the count variable.

To write an algorithm for reading 10 integers from the keyboard, checking how many of them are larger than 50, and displaying the result, you can follow these steps:

1. Initialize a counter variable to keep track of integers larger than 50. Set it to 0.
2. Iterate 10 times to read each integer from the keyboard:
- Prompt the user to enter an integer within the range of 0 to 100.
- Read the integer from the keyboard.
- Check if the entered integer is larger than 50.
- If it is, increment the counter variable by 1.
3. Display the result:
- Output the value of the counter variable, indicating the count of integers larger than 50.

Here's a step-by-step algorithm:

1. Set counter = 0
2. Repeat the following steps 10 times:
a. Prompt the user to enter an integer within the range of 0 to 100.
b. Read the integer from the keyboard and store it in a variable, let's call it num.
c. If num > 50, then increment the counter by 1.
3. Output the value of the counter variable, indicating the count of integers larger than 50.

This algorithm will allow you to read 10 integers, check how many of them are larger than 50, and display the result.