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]
1 year 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]1 year 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]1 year 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
56. Mikayla is filling a glass sphere with water.
kirill [66]

Answer:

The minimum amount of water to fill the sphere is 904.32\ in^{3}

Step-by-step explanation:

we know that

The volume of the sphere (glass sphere) is equal to

V=\frac{4}{3}\pi r^{3}

we have

r=12/2=6\ in ----> the radius is half the diameter

assume

\pi =3.14

substitute

V=\frac{4}{3}(3.14)(6)^{3}

V=904.32\ in^{3}

8 0
1 year ago
According to a study in a medical journal, 202 of a sample of 5,990 middle-aged men had developed diabetes. It also found that m
tekilochka [14]

Answer:

0.0588 = 5.88% probability that a middle-aged man with diabetes is very active

Step-by-step explanation:

Conditional Probability

We use the conditional probability formula to solve this question. It is

P(B|A) = \frac{P(A \cap B)}{P(A)}

In which

P(B|A) is the probability of event B happening, given that A happened.

P(A \cap B) is the probability of both A and B happening.

P(A) is the probability of A happening.

In this question:

Event A: Has diabetes.

Event B: Is very active.

Probability of having diabetes:

To find this probability, we take in consideration that:

It also found that men who were very active (burning about 3,500 calories daily) were a fourth as likely to develop diabetes compared with men who were sedentary. Assume that one-fifth of all middle-aged men are very active, and the rest are classified as sedentary.

So the probability of developing diabetes is:

x of 4/5 = x of 0.8(not active)

x/4 = 0.25x of 1/5 = 0.2(very active). So

P(A) = 0.8x + 0.25*0.2x = 0.85x

Probability of developing diabetes while being very active:

0.25x of 0.2. So

P(A \cap B) = 0.25x*0.2 = 0.05x

What is the probability that a middle-aged man with diabetes is very active?

P(B|A) = \frac{P(A \cap B)}{P(A)} = \frac{0.05x}{0.85x} = \frac{0.05}{0.85} = 0.0588

0.0588 = 5.88% probability that a middle-aged man with diabetes is very active

4 0
1 year ago
Jason Witten's Salary Negotiation Let's say that tight end Jason Witten (a football player) was given two options when negotiati
Leokris [45]

Answer:

Option 1: It is better for him to be paid per catch, starting with 1 cent and doubling with each catch up to 110

Explanation:

If Jason were to be paid per catch given that he makes a total of 110 catches for the 2017 season in his new contract, he would make a total of :

0.01 × 2^109 = $6.4903711e+30(calculator result, means 6 then 30 digits after)

Therefore it is better for Jason to be paid per catch and not a flat fee of $2000000

3 0
1 year ago
Playing tennis burns energy at a rate of about 25 kJ/min. Cycling burns energy at about 35kJ/min. Hans exercised by playing tenn
grigory [225]
To answer this, you need to make a systems of equations.

25x + 35y = 1450
x + y = 50 ----> y = 50 - x

25x + 35(50-x) = 1450
25x + 1750 - 35x = 1450
25x - 35x + 1750 = 1450
-10x + 1750 = 1450
- 1750 -1750

-10x = -300
x = 30


He played tennis for 30min


8 0
1 year ago
The average cost per month of a 2-bedroom apartment in Grayson was $625 last year.This year,the average cost is $650.What is the
Ann [662]

The amount increased 4% from last year.

Step-by-step explanation:

Given,

Average cost last year = $625

Average cost this year = $650

Increase amount = Average cost last year - Average cost this year

Increase amount = 650 - 625 = $25

Percent increase = \frac{Increase\ amount}{Average\ cost\ last\ year}*100

Percent\ increase=\frac{25}{625}*100\\Percent\ increase=\frac{2500}{625}\\Percent\ increase=4\%

The amount increased 4% from last year.

Keywords: percentages, subtraction

Learn more about subtraction at:

  • brainly.com/question/8805387
  • brainly.com/question/8806598

#LearnwithBrainly

8 0
1 year ago
Other questions:
  • Kirti knows the following information from a study on cold medicine that included 60 participants: 30 participants in total rece
    5·1 answer
  • Find the measure of the angle formed between the base of the cone and a line segment that represents the slant height.
    12·1 answer
  • A toy store owner gives 47 balloons to his customers. He has 7 balloons left. How many balloons did he start with?
    13·1 answer
  • Cos2a.cos3a-cos2a.cos7a/sin4a.sin3a-sin2a.sin5a ​
    12·1 answer
  • Sarai has decided to take a risk. She's been saving money and now she's ready to invest in stocks. Most of her stocks give her a
    7·1 answer
  • The price index was 128 in 2013, and the inflation rate was 24 percent between 2012 and 2013. The price index in 2012 was Select
    6·1 answer
  • A dairy farmer accidentally allowed some of his cows to graze in a pasture containing weeds that would contaminate the flavor of
    9·1 answer
  • Jude says that the volume of a square pyramid with base edges of 12 in and a height of 10 in is equal to the volume of a cylinde
    12·2 answers
  • g(x) = x3 + 6x2 + 12x + 8 A 2-column table with 5 rows. The first column is labeled g of x with entries negative 3, negative 2,
    7·2 answers
  • Kay needs to fix part of her fence.She can buy 6 feet of fencing for $32.00 at a fencing store or 10 feet of fencing for $52.50
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!