Algorithm:
1. Start
2. Define a variable 'count' and initialize it to zero.
3. Read the first integer from the keyboard and store it in a variable 'num'.
4. Check if the value of num is within the range of 0 to 100.
5. If yes, then check if the value of num is greater than 50.
6. If yes, then increment the value of 'count' by 1.
7. Repeat steps 3 to 6 until 10 integers have been read.
8. Display the value of 'count' as the result.
9. Stop.
Pseudocode:
count = 0
for i = 1 to 10:
num = input()
if num >= 0 and num <= 100:
if num > 50:
count = count + 1
display(count)
Flowchart:
[Start] --> [Initialize count to zero]
--> [Read num from keyboard] --> [Check if num is between 0 and 100]
--> [Check if num is greater than 50] --> [Increment count by 1]
--> [Repeat for 10 integers]
--> [Display count] --> [Stop]
how to write algorithm and pseudocode and how to draw flowchart to read 10 integers from the keyboard in the range 0 to 100 and count how many of them are larger than 50 and display this result
1 answer