Write a pseudocode algorithm which inputs numeric scores and outputs how many of them are over 100. The end of the data is signalled by a user input of -1.
Answers
Answered by
22
ALOGORITHM
Explanation:
Psuedo code:
1.input the score continuously
2.Parallely check whether the input is greater than 100 or not
3.if input is greater than 100 increment the count variable by one
4. if it is less than 100 do not increment the coun variable
5.If the input is -1 then terminate the taking input and calculation
6.At end print the value of count variable this gives the number of scores that are greater than 100
Example:
66
55
111 #coun incremented here
1344 #coun incremented here
234 #coun incremented here
432 #coun incremented here
567 #coun incremented here
236 #coun incremented here
-1 terminates here coun#coun incremented here
The number of scores greater than 100 are 6
Similar questions