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
bazaltina
11 days 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:
Zina [3.8K]11 days ago
5 0

Response:

     randomGenerator.setSeed(seed);

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

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

Detailed explanation:

zzz [4K]11 days ago
4 0

Note: The solution is highlighted.

 

import java.util.Scanner;

import java.util.Random;

public class RandomGenerateNumbers {

public static void main (String [] args) {

Random randomGenerator = new Random();

int seed = 0;

seed = 4;

randomGenerator.setSeed(seed);

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

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

return;

}

}

You might be interested in
In year 3 it is expected that the total value of clothing sales will reach 32 million if the total value of ASCO sells Remains t
tester [3895]

Answer:

The sales figure for the third year is [\frac{32\ \text{mn}-x\ \text{mn}}{x\ \text{mn}}\times 100\%].

Step-by-step explanation:

Since sales data for the second year is unavailable, we denote it as x million.

Year 3's total sales amount to 32 million.

Calculate the sales account for year 3 as follows:

\text{Percentage of sales for year 3}=\frac{\text{Total Sales in year 3}-\text{Total Sales in year 2}}{\text{Total Sales in year 2}}\times 100\%

                                                =\frac{32\ \text{mn}-x\ \text{mn}}{x\ \text{mn}}\times 100\%

3 0
12 days ago
The semicircle shown at left has center X XX and diameter W Z ‾ ​WZ ​ ​​ start overline, W, Z, end overline. The radius X Y ‾ ​X
PIT_PIT [3895]
Triangle XYZ is an equilateral triangle, meaning the sector's central angle measures 120 degrees, which is equivalent to 2π/3 radians. To find the area of a sector corresponding to a central angle β, we use the formula A = (1/2)r²*β, where β is expressed in radians. For this sector, the area calculation is A = (1/2)*2²*(2π/3) = 4π/3 square units.
7 0
7 days ago
Sue played four games of golf for these games her modal score was 98 and her mean score was 100 her range of score was 10 what w
zzz [4002]

Answer: The other two observations are 97 and 107.

Explanation:

We know that

Mean = 100

Mode = 98

Range = 10

And from the formula,

Range = Highest - Lowest.

Let’s set the highest observation as x and the lowest as y.

Thus, we have the equation x - y = 10 (equation 1).

The observations can be represented as:

x, 98, 98, y.

Using the mean formula yields:

Mean = \frac{\text{Sum of observation}}{\text{N.of observaton}}.

This means our second equation is:

x + y = 204.

By applying the elimination method to solve these linear equations, we find:

x = 97.

and

x+y=204\\y=204-x\\y=204-97\\y=107.

Therefore, the other two observations are 97 and 107.

8 0
11 days ago
Consider 8x2 - 48x = -104. Write the equation so that a = 1: x2 + __ x = __
Zina [3893]

Response:

x² + -6x = -13

Detailed breakdown:

8x² - 48x = -104

Rearranging gives us x² - 6x = -13

5 0
4 days ago
There are 13 teams in a tournament. Each team is to play with each other only once. What is the minimum number of days can they
Leona [4145]
For team one, they have to compete against 12 different teams, which amounts to 12 days of play.

Team two, which has already played team one, will only need to participate in 11 more days.

Team three has already faced teams one and two, leaving them with 10 additional days.

Continuing this pattern results in a total of 12 + 11 + 10 + 9 + 8 + 7 + 6 + 5 + 4 + 3 + 2 + 1 = 78 days.

Alternatively, you can calculate the number of unique matches as 13*12 / 2! = 78.

Another way is by calculating combinations of 13 taken 2 at a time: 13C2 = 13! / [(2!)(11!)] = 13*12*11! /(2!*11!)= 13*12/2 = 78.
6 0
8 days ago
Other questions:
  • Line AB passes through points A(−6, 6) and B(12, 3). If the equation of the line is written in slope-intercept form, y=mx+b, the
    12·2 answers
  • A company buys pens at the rate of $7.50 per box for the first 10 boxes, $5.50 per box for the next 10 boxes, and $4.50 per box
    11·1 answer
  • Jillian’s school is selling tickets for a play. The tickets cost $10.50 for adults and $3.75 for students. The ticket sales for
    15·2 answers
  • Tamara and Amir shared a candy bar. Tamara ate two fifths. Amir ate two fifths. How much is left?
    15·1 answer
  • Tiffany sells two kinds of homemade tomato sauce. A quart of her Tuscan sauce requires 6 tomatoes and 1 cup of oil. A quart of h
    10·2 answers
  • Solve (x + 3)2 + (x + 3) – 2 = 0. Let u = Rewrite the equation in terms of u. (u2 + 3) + u – 2 = 0 u2 + u – 2 = 0 (u2 + 9) + u –
    14·2 answers
  • Instead of having 1.5 times as many pink flowers as white flowers, molly has decided to plant a garden with twice as many pink f
    11·2 answers
  • At a certain company, loan agents are paid based on the number of loans they close in a day. Based on company records, the numbe
    10·2 answers
  • The Weibull distribution is widely used in statistical problems relating to aging of solid insulating materials subjected to agi
    8·1 answer
  • The coordinates of the endpoints of and are A(x1, y1), B(x2, y2), C(x3, y3), and D(x4, y4). Which condition proves that ?
    13·3 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!