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

A college marketing department has a networked storage device that uses the IP address 10.18.7.5, TCP port 443 for encryption, and UDP port 4365 for video streaming. The college already uses PAT on the router that connects to the Internet. The router interface has the public IP address of 209.165.200.225/30. The IP NAT pool currently uses the IP addresses ranging from 209.165.200.228-236. Which configuration would the network administrator add to allow this device to be accessed by the marketing personnel from home

Answers

Answer:

The answer to this question can be defined as follows:

Explanation:

The static NAT stands for (static Network Address Translation), which enables the user to modify a single interpretation for a local second-order to the external environment addresses, and all IP and port numbers were also transcribed inside to random traffic as well as from outside with the internal traffic.

It is used to map network traffic by an internal IP address from a static external IP address. It provides a fixed conversion for actual addresses onto maps. It offers Internet access to the network equipment via a private LAN with such a private IP address which is not recorded.Please find the attachment of the ip address.
Other Questions
Is it organic or not organic A transportation company from State A sued a tourism company from State B in federal court for breach of contract seeking $76,000 in damages. The transportation company filed an appropriate demand for a jury trial, and both parties stipulated that the jury would consist of 10 people. Following the trial and deliberations, nine of the jurors voted in favor of the plaintiff for $29,000 in damages, but one juror voted for the defendant. The defendant appealed. On which of the following grounds would the defendant most likely prevail on appeal? A The court lacked subject matter jurisdiction because the verdict did not exceed $75,000. B The court lacked personal jurisdiction. C The ruling was defective because the jury's vote was not unanimous. D The ruling was defective because it was rendered by fewer than 12 jurors. For a chemical reaction to occur, at least one-third of the solution must be an acid. If there are five liters of acid, in interval form, how much solution is present? A. [5,8)B. (3/5,5]C. (5/3,5]D. [5,15] In which chapter would a reader find information on seeking support? Fear and Its Effects Free from Fear Just Say "No!" to Fear Seeking Support If the variance of a variable is 16, what is the standard deviation? What number :Increased by 130% is 69 i rlly need help!!! NEED ANWSER ASAP! WILL GIVE BRAINLIEST! An ant needs to travel along a 20cm 20cm cube to get from point A to point B. What is the shortest path he can take, and how long will it be (in cm)? Any of a large group of diseases characterized by a condition in which the immune system produces antibodies against its own tissues, mistaking healthy cells, tissues, or organs for antigens is called a/an For each of the following, state the equation of a perpendicular line that passes through (0, 0). Then using the slope of the new equation, find x if the point P(x, 4) lies on the new line. y=3x-1 y=1/4 x+2 John wants to nail a thumbtack on his circular board, pictured below. If the thumbtack is equally likely to be placed anywhere on the board, what is the probability that the thumbtack will be placed on the inner circle? Use 3.14 for , and round your answer to the nearest whole percent. A. 51% B. 55% C. 57% D. 60% g Profit maximazation for a monopolist and a perfect competitor occurs where marginal revenue equals marginal cost. At this profit-maximizing output, the monopolist will charge a price ________ marginal revenue and a perfect competitor will charge a price ________ marginal revenue. Acting which emanates from within the actor such that actors feel the role from the inside, so that they experience the feelings of the character and their entire physiology becomes engaged in the character's life, in addition to reproducing the play's actions, are engaged in Janaki Temple and Pashupatinath Temple are increasing our pride how Use the distributive property to remove the parentheses -5(2x-3w-6) which of the following descriptions represent the transformation shown in the image? Part 1d Algebra 2 help needed! hoose the statement that is incorrect. A. The consensus is that the crowding-out effect is strong enough to make the government expenditure multiplier less than 1. B. The government expenditure multiplier is the quantitative effect of a change in government expenditure on real GDP. C. The tax multiplier is the quantitative effect of a change in taxes on real GDP. D. The demand-side effects of a tax cut are likely to be larger than an equivalent increase in government expenditure Could someone answer the question with the photo linked below? Then explain how to solve it? Your sister recently opened a swanky three-floor cheese market, Fromagerie, which is quickly gaining attention from locals, the press, and restaurateurs in the area. Located near a college town, Fromagerie specializes in rare international cheeses; and on the top floor, there is a bistro where patrons can take cooking lessons, meet new people, dine, and sample some of the world's most savory cheeses before they make a purchase decision. The bistro element of the Fromagerie is primarily an example of your sister's retail strategy in the area of:______a. merchandisingb. atmosphericc. locationd. customer servicese. promotion calculate the net present value of a business deal that cost $2500 today and will return $1500 at the end of this year. use interest rate of 13%