answer.
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
madam [21]
2 years ago
9

Type two statements that use nextint() to print 2 random integers between (and including) 100 and 149. end with a newline. ex: 1

12 102

Mathematics
2 answers:
Stels [109]2 years ago
5 0

Answer:

     randGen.setSeed(seedVal);

     System.out.println(randGen.nextInt(50) + 100);

     System.out.println(randGen.nextInt(50) + 100);

Step-by-step explanation:

solong [7]2 years ago
4 0

NB- Solution is emboldened

 

import java.util.Scanner;

import java.util.Random;

public class RandomGenerateNumbers {

public static void main (String [] args) {

Random randGen = new Random();

int seedVal = 0;

seedVal = 4;

randGen.setSeed(seedVal);

System.out.println(randGen.nextInt(50) + 100);

System.out.println(randGen.nextInt(50) + 100);

return;

}

}

You might be interested in
Lucy has to run two errands. She starts from home and travels 3 miles south to the post office. From the post office, she travel
alexira [117]

Answer:

the correct choice is A. At the gas station

Step-by-step explanation:

Lucy starts at home and travels 3 miles south to the post office. From the post office, she travels 4 miles east to the gas station. As it is known south and east directions form right angle. Since the entire trip forms a triangle, this triangle is right with right angle at the post office.

Call the vertices of this triangle P - post office, G - gas station, H - home. Then HP and PG are legs of this triangle and GH is hypotenuse.

From the given data:

HP=3;

PG=4;

GH=5;

∠P=90°.

The smallest angle is opposite to the smallest side. The smallest side is leg HP, so the smallest angle is G that is the angle at gas station.

6 0
2 years ago
Read 2 more answers
Need help asap. Consider the diagram.
fgiga [73]

ANSWER

<em>alternate interior angles theorem</em>

EXPLANATION

According to the alternate interior angles theorem, when two parallel lines are are intercepted by a straight line (transversal) the angles in the interior corners of a Z-shape pattern are congruent.

From the above diagram line r is parallel to line s, therefore

\angle \: 3 \cong \angle6

and

\angle \: 4\cong \angle5

because they are alternate interior angles.

See attachment for how to spot alternate interior angles.

5 0
1 year ago
Read 2 more answers
If ab = 5 and a² + b² = 25, then (a + b)² =​
prisoha [69]

Answer:

100

Step-by-step explanation:

because 5+5=10

the 10^2=10*10=100

3 0
2 years ago
Read 2 more answers
The sum of Orion and Sagan’s age is 24, and the difference between their ages is 6. Find their ages given that Orion is older th
Katarina [22]

Let's say that Sagan's age is x and Orion is x + 6 (since Sagan is younger by 6 years).


We know that Orion's age + Sagan's age is 24, so x + x + 6 is 24


2x = 18

x = 9


That means that Sagan is 9, and Orion is 9+6 or 15.

6 0
1 year ago
El Sr negron tiene que redactar una serie de cartas en su oficina. A Lourdes le toma 6 horas pasar todas las cartas. A su compañ
vodka [1.7K]

El Sr negron tiene que redactar una serie de cartas en su oficina. A Lourdes le toma 6 horas pasar todas las cartas. A su compañera rosabel, le toma 9 horas en realizar la misma tarea. Si ambas trabajan juntas para hacer todo el trabajo d ela oficina,

a. Cuánto tiempo le tomará a ambas realizar el trabajo?

Answer:

3.6 horas

Step-by-step explanation:

Sea el número total de horas que ambos trabajaron = T

Deje que la cantidad total de letras por las que pasaron = 1

De la pregunta, se nos dice:

Lourdes necesitó 6 horas para revisar las cartas.

Esto significa que, cada 1 hora, Lourdes revisaba 1/6 de las letras

Rosabel tardó 9 horas en leer las letras.

Esto significa que, cada 1 hora, Rosabel revisó 1/9 de las letras

Por lo tanto,

(1/6 × 1) T + (1/9 × 1) T = 1

(1/6 + 1/9) T = 1

(3 + 2/18) T = 1

(18/5) T = 1

5T / 18 = 1

Cruz multiplicar

5T = 18

T = 18/5

T = 3.6 horas

Por lo tanto, les tomó a ambas 3.6 horas hacer el trabajo.

7 0
2 years ago
Other questions:
  • The Marsh family took a vacation that covered a total distance of 1356 miles. The return trip was 284 miles shorter than the fir
    11·1 answer
  • The Greens want to put an addition on their house 18 months from now. They will need to save $10,620 in order to achieve this go
    14·1 answer
  • M∠AFD=90°. m∠AFB=31°. Find m∠CFEm.
    14·2 answers
  • How do i solve this??
    6·1 answer
  • Which binomial is a factor of x4 − 4x2 − 4x 8?
    5·1 answer
  • What is the difference of the two polynomials?<br><br> (7y2 + 6xy) – (–2xy + 3)
    7·2 answers
  • The graph of a limacon curve is given. Without using your graphing calculator, determine which equation is correct for the graph
    12·1 answer
  • Addison walked 6 miles in 4 hours what was her walking rate in hours per mile
    14·1 answer
  • What is the value of b in the equation (y Superscript b Baseline) Superscript 4 Baseline = StartFraction 1 Over y Superscript 24
    5·2 answers
  • An example problem in a Statistics textbook asked to find the probability of dying when making a skydiving jump.
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!