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

Answer 1

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.

Answer 2

Pseudocode algorithm are algorithms that are implemented using pseudocodes, and it does not obey the syntax of a programming language.

The Pseudocode algorithm

The pseudocode algorithm is as follows:

count = 0

input num

while num != -1:

    if num > 100:

         count++

print(count)

The flow

The 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 printed

Read more about pseudocode algorithm at:

https://brainly.com/question/11623795


Related Questions

Other Questions
Good evening can I get help please? A disc has a diameter of centimeters while a mini disc has a diameter of centimeters. Write the ratio of the mini disc diameter to the disc diameter. What is the domain of this function graphed above? What is the factored form of this expression?x2 + 15x + 56 A coin is thrown at random into the rectangle below.A rectangle is about 90 percent white and 10 percent green.What is the likelihood that the coin will land in the green region?It is certain.It is impossible.It is likely.It is unlikely. Bardell, Inc. prepared its statement of cash flows for the year. The following information is taken from that statement: Net cash provided by operating activities $ 30,500 Net cash provided by investing activities 5,800 Cash balance, beginning of year 7,400 Cash balance, end of year 12,300 What is the amount of net cash provided by (used in) financing activities? Does Kerri's dot plot match the data in the tallytable?Use Kerri's dot plot to complete the statements._classmates spent 3 hours at the park._classmates spent 4 hours at the park._classmates spent 5 hours at the park._classmates spent 6 hours at the park. Question 16 (Mandatory) (1 point)If a governor is impeached and convicted, he or shea) must reimburse the state for the cost of the trial in the Senate.Ob) cannot subsequently hold any other state office.c) can appeal the conviction to the Texas Supreme Court.d) can be pardoned by the lieutenant governor. Read the excerpt from "The Most Dangerous Game." Some wounded thing, by the evidence a large animal, had thrashed about in the underbrush; the jungle weeds were crushed down and the moss was lacerated; one patch of weeds was stained crimson. A small, glittering object not far away caught Rainsford's eye and he picked it up. It was an empty cartridge. "A twenty-two," he remarked. "That's odd. It must have been a fairly large animal too. The hunter had his nerve with him to tackle it with a light gun. It's clear that the brute put up a fight. I suppose the first three shots I heard was when the hunter flushed his quarry and wounded it. The last shot was when he trailed it here and finished it." Which literary elements are used in this excerpt What is the simplified value of $\frac{10! + 11! + 12!}{10! + 11!}$? Order the levels of organization from smallest (top) to largest (bottom)A group of the same species in a living area, all living and nonliving things in an area, a living thing, all species living in an area NEED THIS DONE NOW 30 pts Put ADV over the adverbs (if any). The happy children splashed merrily in the pool. Put ADJ over the adjectives and AR over the articles (if any). The happy children splashed merrily in the pool. Put P over all the words that are in the prepositional phrase (if any). The happy children splashed merrily in the pool. Put ADV over the adverbs (if any). We are very happy. Put ADJ over the adjectives (if any). We are very happy. Put ADJ over the adjectives and AR over the articles (if any). The distinguished man in the suit is handsome. Put P over the words that are in the prepositional phrase (if any). The distinguished man in the suit is handsome. Put S over the subject, V over the verb, IO over any indirect object, DO over any direct object, PA over any predicate adjective, and PN over any predicate noun. The cat grabbed the yarn and scampered away. Put S over the subject, V over the verb, IO over any indirect object, DO over any direct object, PA over any predicate adjective, and PN over any predicate noun. Mom gave my little sister a doll for her birthday. You are going to deposit $26,000 today. You will earn an annual rate of 6.1 percent for 11 years, and then earn an annual rate of 5.5 percent for 14 years. How much will you have in your account in 25 years? Match the correct situation to the correct drainage system. Hemothorax with suction ordered Pneumothorax Pneumohemothorax Two-chamber water-seal drainage system. Three-chamber water-seal drainage system. Single-chamber water-seal drainage system. Find the measure of AEC and BED Based on your reading of this section of Article 3 of the U.S. Constitution, which of the cases listed below is not a case you would expect to be the responsibility of the federal courts? "The judicial Power shall extend to all Cases, in Law and Equity, arising under this Constitution, the Laws of the United States, and Treaties made, or which shall be made, under their Authority;--to all Cases affecting Ambassadors, other public Ministers and Consuls;--to all Cases of admiralty and maritime Jurisdiction;--to Controversies to which the United States shall be a Party;--to Controversies between two or more States;-- between a State and Citizens of another State,--between Citizens of different States,--between Citizens of the same State claiming Lands under Grants of different States, and between a State, or the Citizens thereof, and foreign States, Citizens or Subjects." A.Interstate commerce B.Tax issues C.Inheritance issues D.Airline regulation Suppose that a consumer has a health insurance program with co-payments of $10 per doctor visit. If the consumer purchases 6 doctor visits and the bill charged by the doctor for 6 visits is $360, the portion of this cost covered by a third-party payer is: Give one example of how you think the Law of One Price may hold. Find f. (Use C for the constant of the first antiderivative and D for the constant of the second antiderivative.) f ''(x)= 6x +sinx Do you think, are we need to learn Measurement in Physics. Explain how the measurement is necessary and inevitable in real life situations?