1answer.
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
Helen [10]
3 years ago
11

Which of the following expression yields an integer between 0 and 100, inclusive?

Engineering
1 answer:
enot [183]3 years ago
5 0

Answer:

B. (int)(Math.random() * 101)

Explanation:

The function designed as Math.random act as a floating-point of a pseudorandom number with the range between [0,1] which simply means that starting from 0 (inclusive) up to but with the exception of  1 (exclusive), which the design can now be scale to the preferred desired range.

Suppose, we needed 100 inclusive, we have 101 exclusive since we need to scale to 101.

You might be interested in
Consider a fully-clamped circular diaphragm poly-Si with a radius of 250 μm and a thickness of 4 μm. Assume that Young’s modulus
Alina [70]

Answer:

Explanation:

find attached the solution to the question

4 0
3 years ago
Use the scoring system described to calculate the alignment score for These are two lines of 14 letters aligned with each other.
PtichkaEL [24]

Answer:

do good

Explanation:

get that money

7 0
4 years ago
Which kind of fracture (ductile or brittle) is associated with each of the two crack propagation mechanisms?
Nina [5.8K]

dutile is the correct answer

6 0
3 years ago
What are the 4 types of electricity?
olchik [2.2K]

Answer:

Fossil Fuels 67% (Non-Renewable Source): Coal 41%, Natural Gas 21% & Oil 5.1%

Renewable Energy 16%

Mainly Hydroelectric 92%: Wind 6%, Geothermal 1%, Solar 1%

Nuclear Power 13%

Explanation:

3 0
3 years ago
You have measured the force of a hammer hitting a nail by using a new sensor. The result is 60 million dynes is this reasonable
Vesnalui [34]

Answer:

Yes, it is Reasonable.

Explanation:

The problem states that by using a new sensor, the result is 60 million dynes.

Converting the force into Newtons, by using the formula,

1 newton = 10⁵ dynes,

i.e, 1 million dynes = 10 newtons.

we get,

60 million dynes = 60 x 10 newtons = 600 newtons.

The result using a new sensor is reasonable because atmosphere exerts a force of about 10 newtons on us and 600 newtons is just 60 times of it.

Thus 600 N can be applied by the hammer on the nail and it is reasonable.

8 0
4 years ago
Other questions:
  • (a) Draw the Moore finite state machine (FSM) of an electronic combination lock with a RESET button, two number buttons (0 and 1
    12·1 answer
  • A piston cylinder assembly fitted with a slowly rotating paddle wheel contains 0.13 kg of air at 300K. The air undergoes a const
    10·1 answer
  • The solid cylinders AB and BC are bonded together at B and are attached to fixed supports at A and C. The modulus of rigidity is
    6·1 answer
  • Water is pumped from a lower reservoir to a higher reservoir by a pump that provides 20 kW of shaft power. The free surface of t
    14·1 answer
  • The input power for a thermostat is wired to the
    8·1 answer
  • Match each situation with the type of material (conductor or inductor) you would want to use in it. You need to connect a recent
    15·1 answer
  • Define, in words the following i relative humidity ii) dew point temperature
    7·1 answer
  • The convection heat transfer coefficient for a clothed person standing in moving air is expressed as h 5 14.8V0.69 for 0.15 , V
    6·2 answers
  • Pipelines are a useful means of transporting oil because they: Multiple select question. are fast never fail to deliver are chea
    12·1 answer
  • What’s the answer to this I don’t understand
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!