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
Vesna [10]
2 years ago
14

JAVA

Mathematics
1 answer:
Oksi-84 [34.3K]2 years ago
3 0

The program is an illustration of loops

<h3>What are loops?</h3>

Loops are program statements that are used to execute repeated statements

<h3>The java program</h3>

The program, written in Java where comments are used to explain each line is as follows:

import java.util.*;

public class Main{

public static void main(String[] args) {

 Scanner input = new Scanner(System.in);

 int num;

//Get input from the user

 num = input.nextInt();

//Initialize the largest to the first input

 int maxn = num;

//This loop is repeated until a negative input is recorded

 while (num >=0){

//If the current input is greater than the previous largest

     if (num>maxn){

//Set largest to the current input

         maxn = num;      }

//Get another input from the user

     num = input.nextInt();

 }

//Print the largest

 System.out.print("Largest: "+maxn);

}

}

Read more about loops at:

brainly.com/question/14284157

You might be interested in
A psychologist has designed an index to measure the social perceptiveness of elementary school children. The index is based on r
Zanzabum

Complete Question

A psychologist has designed an index to measure the social perceptiveness of elementary school children. The index is based on ratings of a child's responses to questions about a set of photographs showing different social situations. A random sample of 16 elementary school children was chosen, and their index measurements were recorded. Assume that the index measure in the population is normally distributed. The 95% confidence interval created from this data is (56.29, 65.09). This interval indicates:__________.Choose one or more:

a. The average index of elementary school children must be 60.69.

b. The standard deviation of the sample is about 10% smaller than the population standard deviation.

c. That if we take many samples from this population 95% of them will have a sample mean between 56.29 and 65.09.

d. 95% of all elementary school children in this district have indices between 56.29 and 65.09.

e. 4.40 is 95% of the true average of the index for all elementary school children.

f. We are 95% confident that the average index for all elementary school children is between 56.29 and 65.09.

Answer:

The correct option is  a and  f

Step-by-step explanation:

From the question we are told that

    The sample size is  n =  16

     The 95% confidence interval is  (56.29, 65.09)

Generally the sample mean(average index of elementary school children) is mathematically represented as

     \= x  =  \frac{65.09 + 56.29}{2}

=>  \= x  =  60.69

 

5 0
3 years ago
What is 737 rounded to the nearest hundred
valentinak56 [21]
737 rounded to the nearest hundred is 700, because 37 is smaller than 50, if the number was 768, it would be 800.
5 0
3 years ago
The top of Mrs. Vonvilla’s coffee table has the dimensions shown. She wants to put a bumper around the edges of the table to pro
lapo4ka [179]

Answer:

152 inches

Step-by-step explanation:

P = 2 l + 2 w,

We know the length is 48 and width is 28

P = 2 *48 + 2 *28

P = 96+56

P =152

4 0
3 years ago
Read 2 more answers
CAN SOMEONE HELP ME OUT ASAP!!! PLEASE
Maurinko [17]

Answer:

-6.5)7 1/4)6.57)-5 58/100)9 1/3

Step-by-step explanation:

I have no explanation

5 0
3 years ago
Max has a piece of luggage that weighs 23.4 pounds. Convert this weight into kilograms
Bond [772]

Answer:

10.61 kilograms

Step-by-step explanation:

10.61 kilograms

6 0
2 years ago
Read 2 more answers
Other questions:
  • Witch expressions are equivalent to (-2.4a-1.8b)-(-3.8a-4.4b)+(2.0a+3.0b)
    7·2 answers
  • PLEASE HELP I WILL GIVE BRAINLIEST!
    9·2 answers
  • sela has 6 times as many coins now as she had 4 months ago. If Sela has 240 coins now, how many did she have 4 months ago.
    13·2 answers
  • An airplane is at an elevation of 5.5 miles. A submarine is at an elevation of -10.9 kilometers. Which is closer to sea level?
    9·1 answer
  • The graph of an equation is shown below:
    12·2 answers
  • Tom is 40 inches tall. The sign next to the Superman Roller Coaster says: “You must be 48 inches to ride!”. By what percent does
    12·2 answers
  • WILL GIVE BRAINLIEST! 2 QUESTIONS FOR 6 POINTS +3 TO WHOEVER ANSWERS QUICKEST! AND THE HAVE A GOOD EXPLAINATION!
    10·1 answer
  • You have 3/4 yard of pipe how many pieces can you cut the yard into If each yard eighth yard ?
    13·1 answer
  • Worth 60 points
    8·1 answer
  • Find the domain of the function. Express the exact answer using interval notation.
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!