how to write algorithm read 10 integer from the key board in the range 0 up to 100 and count how many them are larger than 50 and display this result by step

1. Start

2. Set count = 0
3. Set i = 1
4. Repeat the following steps for i = 1 to 10
a. Read integer from keyboard
b. If integer > 0 and integer < 100, go to step 4c, otherwise go to step 4d
c. If integer > 50, set count = count + 1
d. Display error message and go to step 4a
5. Display count
6. Stop

To write an algorithm to read 10 integers from the keyboard in the range 0 up to 100, and count how many of them are larger than 50, you can follow these steps:

1. Initialize a variable `count` as 0 to keep track of the count of integers larger than 50.
2. Initialize a variable `i` as 1 to keep track of the current input number.
3. Start a loop that will execute 10 times (since you need to read 10 integers).
4. Within the loop:
a. Read an integer from the keyboard.
b. Check if the input number is within the range 0 up to 100. If it is not, go back to step 4a and prompt the user to enter a valid number.
c. Check if the input number is larger than 50. If it is, increment the `count` variable by 1.
d. Increment the value of `i` by 1 to move to the next input number.
5. After the loop ends, display the value of the `count` variable as the result.

Here is the algorithm in a step-by-step format:

1. Set `count` as 0.
2. Set `i` as 1.
3. Repeat the following steps 10 times:
a. Read an integer from the keyboard and assign it to `num`.
b. If `num` is less than 0 or greater than 100, go back to step 3a.
c. If `num` is greater than 50, increment `count` by 1.
d. Increment `i` by 1.
4. Display the value of `count` as the result.