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 mountain climber took 2 minutes to rappel down 60 feet. Which equation shows the correct calculation to show his movement per
Gelneren [198K]

Answer: C

Step-by-step explanation: going down would mean it's negative, so -60, and you're comparing the feet by the amount of minutes so dividing it by 2 which would be -30. so the answer would be c, -60/2=-30

8 0
2 years ago
Read 2 more answers
Tommy has a piece of toast that has butter on one side, and he dropped it twice. Both times, it landed with the butter side up.
Shkiper50 [21]
Since probability is the measure of the likelihood that an event will occur.so, maybe 5.
5 0
2 years ago
Read 2 more answers
Find the surface area of the regular pyramid shown in the accompanying diagram. If necessary, express your answer in simplest ra
Oksana_A [137]

Answer:

The area of the pyramid is 360 unit²

Step-by-step explanation:

Given

Base Edge, a = 10

Height, h = 12

Required

Determine the surface area

The surface area of a regular pyramid is calculated as thus;

A = a^2 + 2a\sqrt{\frac{a^2}{4} + h^2}

Substitute values for a and h

A = 10^2 + 2 * 10 * \sqrt{\frac{10^2}{4} + 12^2}

Evaluate all squares

A = 100 + 2 * 10 * \sqrt{\frac{100}{4} + 144}

A = 100 + 2 * 10 * \sqrt{25 + 144}

A = 100 + 2 * 10 * \sqrt{169}

Take positive square root of 169

A = 100 + 2 * 10 * 13

A = 100 + 260

A = 360

<em>Hence, the area of the pyramid is 360 unit²</em>

4 0
2 years ago
In a survey, a group of students were asked to name their favorite elective class. There were 15 students who chose “other." How
lyudmila [28]

Answer:

50 % of them participated

7 0
2 years ago
The elevations of three cities in the Netherlands are shown below. Which comparison is true?
Lilit [14]

The correct answer is "Amsterdam is the same distance from sea level as Drachten."  Each is two meters from sea level; Amsterdam is 2 meters under, Drachten two meters over.

8 0
2 years ago
Other questions:
  • The grade of a road is the slope of a road. In the U.S., grade is often expressed as a percent by finding the product 100(slope)
    10·1 answer
  • Brent has a net spendable income of $1,600 per month. He needs to get a new car to drive to work. What car would best fit his bu
    15·1 answer
  • Abbie is 5 years older than twice her sister's age. Abbie is 25 years old. Which equation can be used to find her sister's age?
    11·1 answer
  • The range of the function given below is the set of all positive real numbers greater than 7. F(x) = 7 + 3x A. True B. False
    12·2 answers
  • What is the multiplicative rate of change of the function described in the table ?
    11·2 answers
  • Tyler had $65.40 in his checking account. Then he wrote checks on the account for $20.38, $11.48, and $19.50. What is the balanc
    13·1 answer
  • A store has a $120 dress. Then there is a 200% increase in the price of the dress. What is the final price of the dress?
    6·1 answer
  • Let P2 be the vector space of all polynomials of degree 2 or less, and let H be the subspace spanned by 10x2+4xâ1, 3xâ4x2+3, and
    8·1 answer
  • There are 135 people in a sport centre. 73 people use the gym. 59 people use the swimming pool. 31 people use the track. 19 peop
    8·1 answer
  • Workers have packed 1,400 glasses in 7 boxes. If they pack 3 more boxes, how many glasses will they have packed in all?
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!