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

Which of the following represents a bit?

0

01010110

3F02C

12.356

Answers

Answer:

0

Explanation:

A bit is a single piece of information and the smallest unit that can possibly represented by a computer, like 1 or 0.

The one that represents a bit is 0. The correct option is A.

What is a binary digit?

A binary digit (bit) is the smallest unit of binary data that can be stored in a computer system.

A bit can only be in one of two states: on or off, which are frequently represented by ones and zeros. Which information is entered into and processed by the computer is determined by the combination of ones and zeros.

One of the four types of number systems is a binary number system. Binary numbers are basically represented in computer applications by merely two symbols or digits, namely 0 (zero) and 1 (one).

A bit is a binary digit, which is the smallest data increment on a computer. A bit can only hold one of two values: 0 or 1, which correspond to the electrical values off or on.

Thus, the correct option is A.

For more details regarding binary number, visit:

https://brainly.com/question/28222245

#SPJ2

(03.05 LC
A reliable textbook should contain references to (6 points)
O only primary sources
mainly secondary sources
O both primary and secondary sources
no more than two of each type of source
Helpppp plzzzzz

Answers

Answer:

B. both primary and secondary sources.

Explanation:

Information can be defined as processed data that can be used to perform specific tasks or job functions. The two (2) main sources of information are;

I. Primary source: this type of source comprises of raw information that are first-hand in nature i.e a personal experience or witness of an event (occurrence).

II. Secondary source: this type of source relies solely on the primary source for its information and as such it comprises of second-hand information provided by other authors or researchers.

A reliable source is an information source that is unbiased, trustworthy and reliable. Also, a reliable source is typically backed up by evidence from various information channels and should be accurate.

In order to validate a reliable source, it is necessary that the information provided is checked against other credible sources to verify its accuracy.

This simply means that, if you got an information (data) from any source such as newspaper, website, television, books, radio or anywhere else, you should confirm the credibility and reliability of these information by verifying from one or more sources listed in the reference.

Hence, a reliable textbook should contain references to both primary and secondary sources.

Additionally, references are citations or links to all of the sources from which an author, writer, or researcher got his or her information from. One important thing that references show a reader is that the information is well researched.

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:

my hearth start with a piece of demon cant let me go!

write the html code to get the following webpage
the solar system
ina solar system the planets move around a star. earth is a planet around sun .there are eight planets in a solar system . in order of increasing distance from the sun these are 1.mercury 2.venus 3.earth 4.mars 5.jupiter 6.saturn 7.uranus 8.neptune
save the html document as solarsystem.html

Answers

Answer:

<!DOCTYPE html>

<html>

<head> <title>webpage</title>

</head>

<body>

<h1>The Solar System</h1>

<p>In a solar system the planets move around a star. Earth is a planet around sun. There are eight planets in a solar system . In order of increasing distance from the sun these are: </p>

<ol>

<li>Mercury</li>

<li>Venus</li>

<li>Earth</li>

<li>Mars</li>

<li>Jupiter</li>

<li>Saturn</li>

<li>Uranus</li>

<li>Neptune</li>

</ol>

</body>

</html>

<!-- and save the file as solarsystem.html -->

Consider the following code segment

Answers

Answer:

D:

2

54

Explanation:

In line 3 Math.random() will return a number between 0 and 1, so the minimum is 3 (0*5+3=3), therefore it is impossible for line 4 to return the value 2

HTML code to display square bullets in an unordered list.​

Answers

Answer:

Find the source code below.

Explanation:

HTML is an acronym for hypertext markup language and it is a standard programming language which is used for designing, developing and creating web pages.

Generally, all HTML documents are divided into two (2) main parts; body and head. The head contains information such as version of HTML, title of a page, metadata, link to custom favicons and CSS etc. The body of the HTML document contains the contents or informations of a web page to be displayed.

The complete code for the unordered list with square bullets is written below;

<! DOCTYPE html>

<html>

<head>

<title> Square bullets in an unordered list. </title>

</head>

<body>

<h1> My Favorite Subjects </h1>

<p> This is a list of my favorite subjects; </p>

<ul style =" list- style- type:square">

<li> Computer </li>

<li> Mathematics</li>

<li> Physics </li>

<li> History </li>

</ul>

</body>

</html>

Note: The code isn't indented because i'm not using an appropriate code editor.

Since we are creating a document with an unordered list, we would use the <ul> and </ul> parent tag while the child tag <li> and </li> sorts the list. Also, we would use the style attribute to specify the required inline style (square bullets) for the list.

Other Questions
Am nevoie de un rezumat la Balta Alba de Vasile Alecsandri pana la ora 13:40,dar sa fie fcut de voi, nu luat dup net, va rog mult! pls help the question is in the picture Which is an objective statement about the excerpt? In music, the note G above middle C has a frequency of about 392 hertz. If the speed of sound in the air is 340 m/s, what is the approximate wavelength of this note?(1 point)1.2 meters8.7 meters0.87 meters0.0026 meters Can only like terms be combined? How many fourths are in 3 fourths? Sales associates at an electronics store earn different commissionpercentages based on the items they sell. The table shows the totalsales and commission earnings for four sales associates at theelectronics store last month.GIFTING EXTRA POINTS The _______________ influenced how people behaved.p.s i dont know how to solve this because the lesson is about ancient greece,the roman world and the middle ages A: None of the potential offspring would be male, because the potentially male zygote would have two X chromosomes, and the Y chromosome would be ignored.B: The male offspring would all be red-green color-blind, because of interference from alleles on the Y chromosome.C: The male offspring would have full-color vision, because of the presence of the extra X chromosomeD: There would be no change to the phenotypes of the possible offspring, because the extra X chromosome would not be active. Can someone help me find the formula and the area of this shape asap please I do not understand it. NEED HELP QUICK!!! In Section 3, Jackson identifies what he believes to be a threat to the independence of the United States. What is it? Manufacturers Compromise National debt States' rights pls solve this i cannot do it find x y z in the above Find the slope of the line through the pair of points.L(9, 6), M(1, 9)[tex]\frac{3}{10}[/tex]-[tex]\frac{15}{8}[/tex][tex]\frac{15}{8}[/tex]-[tex]\frac{8}{15}[/tex] HELPP IMA GIVE 15 POINTSHow can we test for density? True or false. Microwaves heat food evenly. Simplify each expression by combining like terms a). x + 2xb). 3m + 4n - 6n What is the area of figure? A. 320 square centimeters B. 608 square centimeters C. 448 square centimeters D. 560 square centimeters Find the slope of the line that passes through (3, 8) and (5, 9). what is 10 2/3 in inproper numbers Hello Everyone! I need you opinion on a poem of mine! Please be honest and don't be worried to tell me if it absolutely sucks, I want to hear the good and (if there is any) the bad. The context is being Bisexual and searching for love in a world that seems like its meant only for "normal" people.Remember HimBy; Jacob OdomRemember when you longed for loveThat someone just for you Remember what you sat aloneAt your table meant for two Remember when you fell for himBut none could ever know Remember when your heart cried outBut you could never show Remember when you told yourself That they can never seeRemember when he touched your handAnd whispered that his, youll beRemember how you skipped a beatAnd felt his warm embraceRemember how he looked at youWith a smile across his faceRemember how he cared for youWhen others turned awayRemember how those who really caredWould have your back and stayRemember when you told your fatherWho told you Go awayRemember when you told you loveThen by his side you layNow still you feel his warm embraceAnd the comfort of his smileNow loyal to your love you stay~