1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
artcher [175]
3 years ago
4

1))a loop that reads positive integers from standard input, printing out those values that are greater than 100, and that termin

ates when it reads an integer that is not positive. The values should be separated by single blank spaces.2))a loop that reads positive integers from standard input, printing out those values that are even, separating them with spaces, and that terminates when it reads an integer that is not positive.3))Write a loop that reads positive integers from standard input and that terminates when it reads an integer that is not positive. After the loop terminates , it prints out the sum of all the even integers read.4))Consider this data sequence: "3 11 5 5 5 2 4 6 6 7 3 -8". Any value that is the same as the immediately preceding value is considered a CONSECUTIVE DUPLICATE. In this example, there are three such consecutive duplicates: the 2nd and 3rd 5s and the second 6. Note that the last 3 is not a consecutive duplicate because it was preceded by a 7.
Computers and Technology
1 answer:
CaHeK987 [17]3 years ago
5 0
For the answer to the question above asking to write <span>a loop that reads positive integers from standard input, printing out those values that are greater than 100, and that terminates when it reads an integer that is not positive. The values should be separated by single blank spaces.2))a loop that reads positive integers from standard input, printing out those values that are even, separating them with spaces, and that terminates when it reads an integer that is not positive.

</span>//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) 
<span>System.out.print(n
</span>
I hope this helps
You might be interested in
Daniel owns a construction company that builds homes. To help his customers visualize the types of homes he can build for them,
DanielleElmas [232]

Answer:

The correct answer to the following question will be "Computer-assisted design".

Explanation:

  • CAD seems to be computer software or development for creating 2D as well as 3D features or models.
  • This technology could be used in a wide variety of companies and professions which could be used to produce architectural models, construction aims, renderings, power systems, technical diagrams, blueprints as well as visual effects through your favorite films and shows.

So that Daniel uses certain technology to support or create these 3D designs.

3 0
3 years ago
An alarm clock draws 0.5 A of current when connected to a 120 volt circuit. Calculate its resistance.
mixas84 [53]

Answer:

120 vpm

Explanation:

8 0
3 years ago
Indicates the beginning and ending of your code written in HTML
lawyer [7]

Answer:

<body> ...</body>

indicates the beginning and ending of your code written in HTML

Explanation:

4 0
3 years ago
Write the code to declare a variable to hold the value of the grade you hope to get in this class. What stdio.h input function w
GREYUIT [131]

Answer:

// code to read grade

#include <stdio.h>

// main function

int main(void) {

   // if grade is character

char grade;

// if grade is numeric then we can use int or double

// int grade;

// double grade;

printf("Enter your grade:");

// read grade from user

scanf("%c",&grade);

// print grade

printf("your grade is:%c",grade);

return 0;

}

Explanation:

To read a value, scanf() function is used from stdio.h.Read a grade from user and assign it to variable "grade".

Output:

Enter your grade:A

your grade is:A

// code to read die volt

#include <stdio.h>

// main function

int main(void) {

// variable

double die_volt;

printf("Enter die volt:");

// read die volt from user

scanf("%lf",&die_volt);

// print die volt

printf("Entered die volt is:%0.2lf",die_volt);

return 0;

}

Explanation:

Read the die volt from user and assign it to variable "die_volt" with the help

of scanf() function.

Output:

Enter die volt:220                                                                                                        

Entered die volt is:220.00

4 0
4 years ago
Which of the following does a code editor NOT provide?
qwelly [4]

Answer:

A- highlighting

Explanation:

plain code editor's don't provide them hope this helps

5 0
3 years ago
Other questions:
  • A compound document contains _______ from different applications.
    12·2 answers
  • If you could make any blog, what would it be about and why?
    9·1 answer
  • Help me!!!!! This is the last question! HELP ME! I REPEAT: HELP ME!!!! I AM SO IN NEED!!!
    12·2 answers
  • I want to message someone on Brainly but it wont let me. How many questions do I need to answer before I could message?
    12·2 answers
  • Page _____ refers to whether a page is laid out vertically or horizontally.
    12·1 answer
  • What do you like most about brainly?
    13·2 answers
  • Contextual targeting method mean
    11·1 answer
  • What do u mean by software​
    7·1 answer
  • Ask the user to input their grade percentage (e.g. the use will enter 98 if they had an overall grade of 98% in their course) fo
    6·1 answer
  • FREEEEE 100 POINTS COME TAKE COME COME COME<br><br> only if u like da black panther
    8·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!