Computers and Technology
15.06.2021 01:39
218
478
6
Solved by an expert

Write a loop that reads positive integers from standard input, printing out those

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.
Show Answers
alyssamaize
alyssamaize
4,6(20 marks)
//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
jameslinimk
jameslinimk
4,6(44 marks)

A pneumatic system is a system that uses compressed air to transmit and control energy. Pneumatic systems are used extensively in various industries. Most pneumatic systems rely on a constant supply of compressed air to make them work. This is provided by an air compressor.

A hydraulic system is a drive technology where a fluid is used to move the energy from e.g. an electric motor to an actuator, such as a hydraulic cylinder. The fluid is theoretically uncompressible and the fluid path can be flexible in the same way as an electric cable.

Explanation:

Examples of pneumatic systems and components Air brakes on buses and trucks. Air brakes on trains. Air compressors. Air engines for pneumatically powered vehicles. Barostat systems used in Neurogastroenterology and for researching electricity. Cable jetting, a way to install cables in ducts. Dental drill.Hydraulic systems use the pump to push hydraulic fluid through the system to create fluid power. The fluid passes through the valves and flows to the cylinder where the hydraulic energy converts back into mechanical energy. The valves help to direct the flow of the liquid and relieve pressure when needed.

Popular Questions about the subject: Computers and Technology

Podcasts and wikis are part of Web 2.0, which allows users of the web to create...
Computers and Technology
17.10.2021 20:50
Write a program in pascal and peudocode to enter marks of a student terminated...
Computers and Technology
22.02.2023 15:35
WILL GIVE BRAINLIEST Most power plants use what machine to produce electricity?...
Computers and Technology
16.05.2021 06:19
I am bored -.- but here is some points owo...
Computers and Technology
11.11.2020 20:57
Can someone help me with this?...
Computers and Technology
01.03.2023 20:23
Which feature of a database allows a user to locate a specific record using keywords?...
Computers and Technology
01.04.2022 07:47
Select all the correct answers. Which TWO pieces of information does a TCP/IP...
Computers and Technology
03.08.2021 03:13
CC fans only dont ask what that is btw u like my drawings...
Computers and Technology
09.03.2022 12:35
Me and the bois taking pics...
Computers and Technology
15.05.2023 12:31
PLEASE HURRY When the 1905 Sequoyah Convention ratified their state constitution...
Computers and Technology
20.12.2020 15:16

New questions by subject

What are some problems chemist must consider when developing new technologies?...
Chemistry
12.05.2020 21:49
Group 7a of the periodic table contains the a. most reactive nonmetals. b. most...
Chemistry
30.11.2021 23:19
Explain how the brain works to create memory....
English
13.08.2022 04:29
Conditions cause air to be dry. humid warmer cooler none of the above...
Biology
12.02.2020 10:30
Apineapple is 7 times as heavy as an orange. the pineapple also weight 870 grams...
Mathematics
30.01.2022 12:56
Who state investigators sweep out the old tammany officeholders and bring into...
History
15.02.2023 19:36
If 5x+2 is an even integer, find the next odd integer....
SAT
25.11.2022 22:32
#
#
#
#
# #

We expand our knowledge with many expert answers