Write a loop that reads positive integers from standard input, printing out those values that are greater than 100, each on a separate line, the loop terminates when it reads an integer that is not positive.

Answers

Answer 1
Answer: //use java not javascript
Scanner scan = new Scanner(s); 
int nums[] = new int[2000]; 
int value =1; 
int index = 0; 
\\loop for entering values and save those over 100 in an array 
While( value >= 0 ) \\ as long input is positive number loop continues 


System.out.print("Enter an integer : "); 
value = scan.nextInt( ); 
if(value > 100) 

nums[index] = value; 
index++; 




//Next loop prints the array contents on one line with one space 
for( int i =0; i < nums.length; i++) 

if(nums[i] > 100) 
System.out.print(n

Related Questions

how do you make a circuit so 1 switch will turn on/off all the lights(3 lights) and a second switch will change the lights from all being the same brightness to all being different brightnesses?
In the source-code file containing a class’s member function definitions, each member function definition must be tied to the class definition by preceding the member function name with the class name and ::, which is known as the:
Your grandmother tells you a dollar doesn't go as far as it used to. She says the "purchasing power" of a dollar is much less than it used to be. Explain what she means. Try to use and explain terms like inflation and deflation in your answer. ​
What is unique about the date calculations from other formulas?O Some do not require any arguments.O It uses absolute numbers.O It uses/ for division.O It uses parentheses for arguments.(THE ANSWER IS A)
HELLLLLPPPPP MMMMEEEEEER Alexander studies sitting on the edge of his bed with his laptop on his lap. He complains of a sore neck. How can he best improve his study area?He can put his computer on the bed and sit in a straight-backed chair.He can sit in a comfortable chair and put the computer on his lap.He can sit on the bed and put the computer on a nearby nightstand.He can put his computer on a desk and sit in a comfortable chair.

Blank includes websites that encourage interaction and connection among people ,business and organizations

Answers

The answer would be social media

In night mode, you will want to use which of the following? A. a filter
B. a tripod
C. a telephoto lens
D. a wide-angle lens

Answers

In night mode, you will want to use a tripod. The correct answer is B. 
in night mode, the one that we should use is : B. A tripod
Tripod is used to stabilize and elevate a camera, which allow it to fully use its Flash  light advantage, which is very good to be used to take pictures in the night

hope this helps

What feature of virtualization software allows you to revert to a previous point in time in the event you make an unrecoverable error

Answers

Answer:

snapshots

Explanation:

Snapshots -

In the field of computer science ,

It refers to the situation of the system at a specific time period , is referred to as a snapshot.

It is basically used to freeze the particular time .

It can have the actual or the main copy of the state of the system .

Hence, from the given information of the question,

The correct term is snapshots.

Evonka is listening to music from an online music provider (such as Pandora or Jango). She builds a list of music preferences, including favorite songs. The music service then suggests additional songs she might enjoy. The music provider is an example of a cloud-computing application that uses a technology for collaborative filtering, which helps define the list of songs available to listeners. Which term describes this technology?Group of answer choices

Bit-Torrent

Grid Computing

Software as a Service

Crowdsourcing

Answers

Answer:

D. Crowdsourcing

Explanation:

Crowdsourcing can be defined as a collaborative process which typically involves completing a project (task) and solving a problem through a group of people (crowd) that are geographically dispersed over the internet.

Basically, crowdsourcing refers to an outsourcing technique which allows a project or task to be jointly completed by a group of people (crowd) such as volunteers or freelancers who are made to work remotely over the internet.

In this scenario, an online music provider such as Pandora or Jango uses crowdsourcing for collaborative filtering, which helps define the list of songs available to listeners.

When you're working with a word processing document and you press the DEL Key what happens

Answers

The character to the right of the cursor is deleted. 
it will delete for DEL is delete

A _____ is a note that can be added to a document or presentation without making any changes to the text itself.

Answers

A comment is a note that can be added to a document or presentation without making any changes to the text itself