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
Create a tally chart with the data below
ladessa [460]
3 beach 2 skiing and 2 camp
5 0
2 years ago
Read 2 more answers
In order to explain finicial concepts to your clients you need to have
Neporo4naja [7]

Im think its C. Accounting.

Hope that is correct.

7 0
2 years ago
Hi can anyone help me with this ..​
aleksley [76]

Answer:

n = π/6, π/4, 3π/4, 5π/6

Step-by-step explanation:

sin(3n) − sin n = cos(2n)

Use double and triple angle formulas:

(3 sin n − 4 sin³ n) − sin n = 1 − 2 sin² n

2 sin n − 4 sin³ n = 1 − 2 sin² n

4 sin³ n − 2 sin² n − 2 sin n + 1 = 0

Factor by grouping:

2 sin² n (2 sin n − 1) − (2 sin n − 1) = 0

(2 sin² n − 1) (2 sin n − 1) = 0

Solve:

2 sin² n − 1 = 0

2 sin² n = 1

sin² n = 1/2

sin n = √2/2

n = π/4, 3π/4

2 sin n − 1 = 0

2 sin n = 1

sin n = 1/2

n = π/6, 5π/6

4 0
2 years ago
1.Arsenic-74 is used to locate brain tumors. It has a half-life of 17.5 days. 90 mg wereused in a procedure. Write an equation t
Sophie [7]

1)\text{   }N_t\text{ = 90\lparen}\frac{1}{2})^{\frac{t}{17.5}}

2) 5.625 mg will be left

Explanation:

1) Half-life = 17.5 days

initial amount of Arsenic-74 = 90 mg

To get the equation, we will use the equation of half-life:

\begin{gathered} N_t\text{ = N}_0(\frac{1}{2})^{\frac{t}{t_{\frac{1}{2}}}} \\ where\text{ N}_t\text{ = amount remaining} \\ N_0\text{ = initial amount} \\ t_{\frac{1}{2}\text{ }}\text{ = half-life} \end{gathered}N_t\text{ = 90\lparen}\frac{1}{2})^{\frac{t}{17.5}}

2) we need to find the remaining amount of Arsenic-74 after 70 days

t = 70

\begin{gathered} N_t=\text{ 90\lparen}\frac{1}{2})^{\frac{70}{17.5}} \\ N_t\text{ = 5.625 mg} \end{gathered}

So after 70 days, 5.625 mg will be left

4 0
1 year ago
Elephant<br> A. 30 kilograms<br> B. 90 grams<br> C. 5,000 grams<br> D. 5,000 kilograms
Mariulka [41]
Pretty sure it’s d. 5,000 kilograms
7 0
2 years ago
Read 2 more answers
Other questions:
  • The probability that Asha will lose a game is 4/9. If it is impossible to tie, what is the probability that Asha will win the ga
    15·1 answer
  • A researcher wishes to​ estimate, with 9999​% ​confidence, the population proportion of adults who think Congress is doing a goo
    5·1 answer
  • Solving for 10x +14 = -2x+38
    8·2 answers
  • The word problem below has too little information. Read carefully and then
    14·1 answer
  • Jennifer has 5 pairs of blue socks and 9 pairs of white socks. What is the ratio of white pairs to blue pairs? pls help
    10·1 answer
  • Where is the punctuation error in this sentence?
    6·2 answers
  • I need help with this im new to this i wasn’t at school theses days and my teacher won’t explain 2 me if u could help it would m
    10·1 answer
  • Giải phương trình y"= lnx
    7·1 answer
  • The model represents the equation <br> 4x+ 4 = 12<br> What value of x makes the equation true
    11·1 answer
  • Garcia is modeling the equation 5x
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!