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
A ball A is thrown vertically upward from the top of a 30-m-high building with an initial velocity of 5 m>s. At the same inst
expeople1 [14]

Answer:

s= 20.4 m  

Explanation:

First lets write down equations for each ball:  

s=so+vo*t+1/2a_c*t^2

for ball A:

s_a=30+5*t+1/2*9.81*t^2

for ball B:  

s_b=20*t-1/2*9.81*t^2

to find time deeded to pass we just put that

s_a = s_b  

30+5*t-4.91*t^2=20*t-4.9*t^2

t=2 s  

now we just have to put that time in any of those equations an get distance from the ground:  

s = 30 + 5*2 -1/2*9.81 *2^2  

s= 20.4 m  

6 0
3 years ago
When the compression process is non-quasi-equilibrium, the molecules before the piston face cannot escape fast enough, forming a
muminat

Answer:

a. true

Explanation:

Firstly, we need to understand what takes places during the compression process in a quasi-equilibrium process. A quasi-equilibrium process is a process in during which the system remains very close to a state of equilibrium at all times.  When a compression process is quasi-equilibrium, the work done during the compression is returned to the surroundings during expansion, no exchange of heat, and then the system and the surroundings return to their initial states. Thus a reversible process.

While for a non-quasi equilibrium process, it takes more work to move the piston against this high-pressure region.

5 0
3 years ago
Read 2 more answers
Alcohol consumption tends to cause more ___________ behavior.
lions [1.4K]

Answer:

Aggressive behavior

Explanation:

Alcohol consumption tends to cause more Aggressive behavior.

The consumption of alcohol plays a more role in our culture but drinking of too much alcohol can cause drowsiness, vomiting, Upset stomach, slurred speech, heart damage, infertile, numbness lung infections, and many more. Also too much alcohol can cause violence, anger and so on in the society.    

8 0
3 years ago
blank lines are used to see inside the product?blank lines are used to see inside the product what are they called ​
mixer [17]

Answer:

Do you have anymore information about this?

7 0
3 years ago
Suppose you have two boxes in front of you. One box contains a Thevenin Equivalent (voltage source in series with a resistor) an
fomenos

Answer:

1. Measure the temperature of the boxes and leave them unconnected.

2. Norton reduces his circuit down to a single resistance in parallel with a constant current source. A real-life Norton equivalent circuit would be continuously wasting power (as heat) as the current source dumps energy into the resistor, even when externally unconnected, while a Thevenin equivalent circuit would sit there doing nothing.

3. The Norton equivalent box would get warm and eventually run out of power. The Thevenin equivalent box would stay at ambient temperature.

8 0
3 years ago
Other questions:
  • What is EL Niño?
    9·1 answer
  • Two AAA-size lithium batteries are connected in series in a flashlight. Each battery has 3.5 volt and 4- Amp-hour capacity. If t
    8·1 answer
  • What does it mean when it says technology is A dynamic process
    7·1 answer
  • Select the correct answer.<br> Which equation gives you the amount of work performed?
    14·1 answer
  • A reversible refrigeration cycle operates between cold and hot reservoirs at temperatures TC and TH, respectively. (a) If the co
    6·1 answer
  • El protozoos es del reino protista?
    14·2 answers
  • Witch one is cuter compared to ur opinion calico kitten or grey?​
    5·1 answer
  • Which symbol should be used for the given scenario?
    11·1 answer
  • T/f
    10·1 answer
  • Which of these processes uses a die and a press to form parts?
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!