Write a program code which asks for 80 numbers between 100 and 1000 to be entered.
It checks that the numbers are in the correct range, and stores them in an array. It
counts how many of the numbers are larger than 500 and then outputs the result when
the program is finished.

Answers

Answer 1

Answer:

If you are using Python,

```count = 0

for i in range(0, 79):

a = int(input("Input a number: "))

if 100 <= a <= 1000:

 if a > 500:

  count += 1

else:

 print("Please input a number between 100 and 1000!")

 i -= 1

print(count)```

Explanation:

count refers to the number of 500s and above,

the for loop is required for the program to loop 80 times,

a is the input collected,

the nested if is to check whether the number is above 500 and the if is used to check if the number is between 100 and 1000 if not, it will output that you need to input a number between 100 and 1000,

the i-=1 is required to make sure that part wasn't counted.

and the last print is to output the number of numbers above 500


Related Questions

Alex works as a customer-service representative at an insurance company. Before starting his shift, Alex reviews issues from his last shift to make sure they have been resolved. What workplace habit does Alex show by doing this? problem solving initiative efficiency interpersonal skills

Answers

Answer:

problem-solving

Explanation:

he is making sure all his problems have been resolved before starting a new shift.

Answer:

It's initiative

Other Questions
1. Solve the following expression if b=8. 10 b2(2=squared) I am a Main Sequence star in spectral class O with a brightness of 10^4. What does it mean to be in the same species using the graph as your guide options for bottom question are -helps the water boil faster-helps flavor the pasta-keeps the pasta from sticking-helps the sauce stick to the pasta "Death solves all problems. No man, no problem." Joseph Stalin--Soviet politician and leader (1924-1953) The above quote is commonly attributed to Joseph Stalin. How does this quote accurately describe Stalin's leadership style during the formation and industrialization of the Soviet Union? Stalin forced workers to work in dangerous conditions to achieve the objectives of his Five Year Plans.Stalin frequently kicked political opponents out of the country to limit the opposition to his power and control within the Soviet Union.Stalin saw death as the ultimate threat to his legacy and tried to ensure that as many of his achievements as possible had long-term effects.Stalin had many political opponents killed as a way of building his own political power. 10. Which answer choice has a positive connotation?a Jordan gave a curt answer.B. Jordan gave a concise answer.C. Jordan gave an abrupt answer.D. Jordan gave a blunt answer. explain the importance of earthworm I NEED THIS ASAP!!! The residents of a city voted on whether to raise property taxes. The ratio of yes votes to no votes was 5 to 4. If there were 4045 yes votes, what was the total number of votes? Water polo is significantly popular in all of these places EXCEPT 5 7/8(3 1/2+1 1/4)?(9 1/23 7/8)+(4 4/51 1/2)(12 1/3+5 1/3)(7 4/87 1/6)Simplest form. A hollow cylinder has solid hemisphere in one end and on the other end it is closed with a flat circular plate. The height of water is 10cm when flat circular surface is downward. Find the level of the water, when it inverted upside down, common diameter is 7cm and height of the cylinder is 20 CM. If someone catches me up on edge for math I will pay 100 dollars anyway you want it. Please someone help me! If interested email me at kanemagdalene at g mail.com The first correct answer gets brainliest The average adult heart pumps about 84./mLs of blood at 72 beats per minute. Suppose you need to calculate how long it would take the average heart to circulate 1700.mL of blood. Set the math up. list 15 set of object Cindy has a 4-shelf bookcase in which she wants to place baskets. Each basket takes up 1/4 of the shelf. How many baskets can Cindy place on the 4 shelves? 1.What is the purpose of persuasive writing? How does the author of "The Lady, or the Tiger?" showthe moral of the story? What lets you know that this is themoral?Can some one put it in they own words tho lol a paper balloon costs php7.50 what is the cost if i buy 6balloons?