Answer:
calculateCountGreaterThan100()
{
declare variable count with zero
while True
{
input numeric values from user
if user inputted value > 100
increment the count
if user inputted value == -1
break the loop
}
print the value of count
}
Explanation:
First of all, let us have a look at the meaning of a pseudocode:
A pseudocode is nothing but a informative way of expressing our code in simple plain English.
It is not written in programming language so it does not have any syntax rules.
Here, we are asked to write pseudocode algorithm for inputting numeric scores and output the number how many of them are greater than 100. The end of numbers is signalled by a user input of -1.
The answer is:
calculateCountGreaterThan100()
{
declare variable count with zero
while True
{
input numeric values from user
if user inputted value > 100
increment the count
if user inputted value == -1
break the loop
}
print the value of count
}
Here, we have declared a variable with initial count as 0.
Then, in a loop we are taking input from user in which user is giving integer input.
If the value is greater then zero, the count is incremented.
If the value is -1, we come out of the loop and then print the count value.
Pseudocode algorithm are algorithms that are implemented using pseudocodes, and it does not obey the syntax of a programming language.
The Pseudocode algorithmThe pseudocode algorithm is as follows:
count = 0
input num
while num != -1:
if num > 100:
count++
print(count)
The flowThe flow of the above pseudocode algorithm is as follows
First, variable count is initialized to 0Next, we take input for numNext, a loop is repeated until the input is -1During each loop, the inputs over 100 are countedLastly, the count of inputs greater than 100 is printedRead more about pseudocode algorithm at:
https://brainly.com/question/11623795