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
(25 points, please help! Brainliest!) Mrs. Hanger is painting the following picture of an H to hang in the entryway of her home.
disa [49]

Answer:

the new scale is the same length as the original scale

7 0
2 years ago
A student walks 1/4 Mile from her home to the store on her way to a friend's house at the store is one third of the wave to her
Setler [38]
Her friend's house is 1/12 miles away from her house.

Since 1/4 miles is 1/3 of the way, 1/4 x 1/3 = 1/12.
4 0
2 years ago
Read 2 more answers
sophia says that you can solve the problem in the Example by multiplying both quantities in the ratio 60 : 36 by 1 . Is Sophia c
guapka [62]

Answer:

No multiplying both quantities in the ratio 60 : 36 by 1  would not give the answer .

But multiplying both quantities in the ratio 60 : 36 by 1/6  would solve it.

Step-by-step explanation:

Multiplying any number or ratio by 1 gives the same answer no matter what the expression or how much bigger the number is.This will not give the solution .

If it is multiplied with a fraction like 1/6  that would give the correct answer.

Multiplying it with 1/6 reduces the ratio and gives a better estimate.

A:B

60:36

60*1/6: 36*1/6

10: 6

Meaning that for a total of 16 there are 10 of category A and 6 of category B.

But if we do the same procedure with the answer is same which does not solve the question.

A:B

60:36

60*1: 36*1

60: 36

4 0
2 years ago
Hannah has 127 books in her collection. Her school is hosting a book donation. There are z students at her school, and they each
luda_lava [24]

127 \div z
8 0
2 years ago
Harper went into a movie theater and bought 10 bags of popcorn and 6 drinks,
Gnesinka [82]

Answer:

The price of a drink = $4

The price of a bag of popcorn = $5.5

Step-by-step explanation:

Let p represent popcorn and d represent drink

<u>Harper bought 10 bags of popcorn and 6 drinks and paid $79 ➡ 10p + 6d = $79</u>

<em>Damian bought 3 bags of popcorn and 5 drinks and paid $36.50 ➡ 3p + 5d = $36.50</em>

Now multiply first equation by -3 and second equation by 10

-3 × (10p + 6d) = $79 ➡ -30p - 18d = -$237

10 × (3p + 5d) = $36.50 ➡ 30p + 50d = $365

Now add the new equationd

30p + 50d -30p - 18d = $365 - $237 (-30p will eliminate 30p)

32d = $128 divide both sides of the equation by 32

32 ÷ 32d = 32 ÷ $128 ➡ d = 4

If d = 4 that means a drink costs $4 we can use this information to find the price of a bag of popcorn

3p + 5d = $36.50 (replace d with 4)

3p + 4×5 = $36.50

3p + 20 = $36.50

3p = $36.50 - 20

3p = 16.50 divide both sides by 3

p = $5.5

5 0
2 years ago
Other questions:
  • the local bakery uses 1.75 cups of flour in each batch of cookies the bakery used 5.25 cups of flour this morning how many batch
    6·1 answer
  • 2.087 greater or less than 2.15
    15·2 answers
  • Hugo decided to pay $2 a week to his brother to buy a bicycle. The equation y – 10 = –2(x – 10) models the amount of money he ow
    8·2 answers
  • What interest will be earned if $6300 is invested for 3 years at 12% compounded monthly?  Write your answer rounded to the neare
    12·2 answers
  • The density of an object can be found by taking its mass and dividing by its volume. Write an equation to represent the relation
    8·1 answer
  • A certain brand of jelly beans are made so that each package contains about the same number of beans. The filling procedure is n
    13·1 answer
  • Name a career that requires data-analysis skills. Describe how data analysis is used in this career. Be specific in your example
    7·1 answer
  • Which of these functions has a domain of all real numbers except x=4.1?
    10·1 answer
  • The local pizza shop sells several special items.
    6·2 answers
  • The table below shows the total number of hours, Jessica, Emily, and Trina, each studied after given number of weeks. Part A one
    11·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!