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
A label that wraps around a box of golf balls covers 75% of its lateral surface area. What is the value of x? The height is 2 th
GalinKa [24]

To find the area of the rectangular prism, use the formula:

A = width x height x length

A = 2 x 2 x 3

A = 12

Now multiply A with 0.75

12 x 0.75 = 9

x = 9 in³

hope this helps

5 0
2 years ago
Read 2 more answers
What is the solution to the inequality 2 + 4/9x _> 4 + x
Vsevolod [243]
Multiply each side by 9:
18 + 4x > 36 + 9x
Subtract 18 from each side:
4x > 18 + 9x
Subtract 9x from each side:
-5x > 18
Divide each side by -5:
x < -3.6

Hope this helps!

8 0
2 years ago
It takes 45 minutes to drive to the nearest bowling alley taking city streets going
Savatey [412]

Answer:

21 minutes

Step-by-step explanation:

Given the following :

Taking CITY STREET:

Time taken to drive to nearest bowling alley = 45 minutes = 45/60 = 0.75 hours

Speed of travel = 30 miles per hour

Taking FREEWAY:

speed of travel = 65miles per hour

If the distance to bowling alley is the same along both routes, The time taken along FREEWAY will be :

.

Distance to bowling alley taking city center :

Speed = distance / time

30 mph = distance / 0.75 hour

Distance = 30 × 0. 75 = 22.5 miles

Since distance is the same :

Time taken along FREEWAY :

Time taken = distance / speed

Time taken = 22.5 / 65 = 0.3461538 hour

Converting to minutes :

0.3461538 × 60 = 20.769 minutes

= 21 minutes ( to the nearest minute)

7 0
2 years ago
3. A balloon with a small leak loses 0.5% of its volume each day. If it originally contained 40 liters of gas, what is the volum
Rus_ich [418]
V=40L
.005*40=.2
40-.2 * 7 = 38.6 L after 1 week
7 0
2 years ago
Simplify the expression 6h+​(−7.7d​)−18+5d−2.8h<br>.​
g100num [7]
Answer : -2.7d+3.2h-18

Please leave a thanks <3
7 0
2 years ago
Read 2 more answers
Other questions:
  • Write the sum using summation notation, assuming the suggested pattern continues. -9 - 3 + 3 + 9 + ... + 81
    15·2 answers
  • Using the GCF you found in Part B, rewrite 35 + 63 as two factors. One factor is the GCF and the other is the sum of two numbers
    15·1 answer
  • Which of the x values are solutions to the inequality 4(2 – x) &gt; –2x – 3(4x + 1)? Check all that apply.
    7·2 answers
  • Louis started a table showing a multiplication patterns complete the table describe a pattern you see in the products
    15·1 answer
  • Jeannine runs a mobile dog bathing service, and the amount of money she earns varies directly with the number of dogs she bathes
    12·2 answers
  • Mrs. Varner deposited q dollars in a bank account that has been earning annual interest. The total value of the account is based
    10·2 answers
  • In Littletown, the probability that a baseball team goes to the city playoffs is 0.30. the probability that the team goes to the
    7·2 answers
  • Explain how to graph the given piecewise-defined function. Be sure to specify the type of endpoint each piece of the function wi
    8·2 answers
  • What is the GCF of the terms of the polynomial −16y4 + 12y2 – 4y?
    13·1 answer
  • Mira picked two numbers from a bowl. The difference of the two numbers was 4, and the sum of one-half of each number was 18. The
    14·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!