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
Add the following polynomials, then place the answer in the proper location on the grid. Write answer in descending powers of x.
CaHeK987 [17]

Answer:

-x^5+3x^4+16x^3+7x^2-3x+6

Step-by-step explanation:

Given polynomials are:

x^5-4x^4+7x^3+8, 9x^3+7x^2-10 and -2x^5+7x^4-3x+8

Now we need to add the given polynomials, then place the answer in the proper location on the grid. Also we need to write answer in descending powers of x.

So let's add them by combining like terms:

x^5-4x^4+7x^3+8+9x^3+7x^2-10-2x^5+7x^4-3x+8

-x^5+3x^4+16x^3+7x^2-3x+6

Hence final answer in descending order is -x^5+3x^4+16x^3+7x^2-3x+6

6 0
3 years ago
The mean number of points scored by the los angeles lakers was 101.7. in what proportion of their game did the celtics score mor
Alex787 [66]
Thank you for posting your question here at brainly. I hope the answer will help. Belowis the solution:

Let X be a random variable for the Celtics score. Then you want 

<span>P(X > 101.7) </span>
<span>  1 - P(X < 101.7) </span>
<span>  = 1 - P((X - μ)/σ < (101.7 - 99.2)/10.5)) </span>
<span>  = 1 - N_Z(0.2381) </span>
4 0
3 years ago
Help I don’t understand this ‍♀️
irina [24]
Hello there!
Point A is (-4,2)
Point B is (3,5)
Point C is (-2,-4)
Point D is (-3,1)
Point E is (0,-2)
6 0
3 years ago
Read 2 more answers
Please work out and explain​
Mekhanik [1.2K]

Answer:

a = 22

b = 31

c = 13

Step-by-step explanation:

The sum is the same in each row, column, and diagonal.

One of the diagonals is already complete.  The sum is:

16 + 25 + 34 = 75

So the first row adds up to 75:

a + 37 + 16 = 75

a = 22

The second row adds up to 75:

19 + 25 + b = 75

b = 31

And the third row adds up to 75:

34 + c + 28 = 75

c = 13

We can check our answer by finding the sum of each column and the other diagonal.

22 + 19 + 34 = 75

37 + 25 + 13 = 75

16 + 31 + 28 = 75

22 + 25 + 28 = 75

3 0
4 years ago
If George received $78.00 for his work and he gets paid 6 dollars and hour how much is he getting paid
swat32

13 hours 78÷6=13 hope it helps

8 0
4 years ago
Read 2 more answers
Other questions:
  • Which choice represents the best rational approximation for the square root of 20
    10·2 answers
  • Paul bought a package of 6 spiral notebooks for a total cost of $13.50. Which equation represents p, the cost, in dollars of eac
    15·1 answer
  • Which function is represented by the graph below?
    10·2 answers
  • HELP WILL MARK YOU BRAINLIEST NO GUESSES PLZ!!!!
    5·1 answer
  • An object of mass 100 kg is released from rest from a boat into the water and allowed to sink. While gravity is pulling the obje
    7·1 answer
  • Help me plz I don't understand this
    15·2 answers
  • Please help!!!!!! I will mark brainliest!!!<br>​
    8·2 answers
  • A recipe needs 5/4 of a cup of sugar. you are going to triple the recipe . how much sugar do you need.
    15·2 answers
  • A bicycle is travleing a 15 miles per hour how many feet will it cover in 20 seconds
    14·1 answer
  • What are the coordinates of the image of point K(1,3) after a reflection over the line y = -1
    13·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!