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
Question 6
Naily [24]

A British thermal unit (BTU) is defined as the amount of heat required to raise the temperature of 1 pound of water by 1 degree Fahrenheit. To calculate the temperature of a water sample from the BTUs applied to it, you must know the weight of the water and its starting temperature. You can measure the weight of the water using a scale, and the temperature using a Fahrenheit thermometer. Once you have that information, calculating the temperature of the water after applying a known number of BTUs of heat is easy.

5 0
2 years ago
I built a compound machine but now I need help with the mechanical advantage and drive ratios.
NikAS [45]

good job I can't do that

Explanation:

I don't think I can help tho

4 0
3 years ago
Air enters a compressor operating at steady state at a pressure of 1 ????????????, a temperature of 290 K, and a velocity of 6 m
zmey [24]

Answer: -119.56Kw.

Explanation:

Bringing out the parameters from the equation;

Inlet pressure P1 1bar = 10N/m

Outlet pressure P2 7bar = 70N/m

T1 is 290K, T2 is 450K

Velocity V1 is 6m/s, V2 is 2m/s

Heat transfer rate is 180kj/min. which can be written as 180kj/60secs.

Area A is 0.1m³.

From the steady state energy equation

∆H+g(z2-z1)+1/2(V²2-V²1)=Q/m-W/m

Solving for W with g(z2-z1)=0, we have

∆H+0+1/2(V²2-V²1)=Q/m-W/m

W=Q+m[∆H+(V²2-V²1/2)] ..........eq. 1

m is the mass flow rate given as

A.V/v,

Where W is the power, V is the velocity, and v is the specific volume

A is Area.

But the specific volume is derived from the ideal gas law;

v = (R/M) × T/P1, where R is universal gas constant given as 8314N.m

M is the molecular mass of air given as 28.97kg.k.

STEP 1: Find the specific volume from above formula:

Specific volume, v = [(8314N.m/28.97kg.k) × 290K]/ 10N/m² = 0.8324kg/m³

STEP 2: Find mass flow rate, m = A.V/v = 0.1m³ × 6m/s / 0.8324kg/m³

m = 0.7209kg/s

STEP 3: Find the specific enthalpy from air property table as

@ T1 of 290k and P1 of 0.1Mpa, specific enthalpy is 290.6kj,/kg

@T2 of 450k and P2 of 0.7Mpa, specific enthalpy is 452.3kj/kg.

Therefore, ∆H = H2 - H1 = 290.6kj/kg - 452.3kj/kg = -161.7kj/kg.

STEP 4: Calculate change in K.E

1/2(V²2-V²1) = 6²-2² /2 = 16J/kg or 0.016Kj/kg..

STEP 5: Calculate power in KW using eq.1.

W = (180kj/60secs) + [(0.7209kj/s(-161.7-0.016)kj/kg]

W = 3kj/secs - 116.557kj.s

W = -119.56KW.

4 0
3 years ago
What role does forecasting play in the supply chain
nadya68 [22]

Answer:

Demand forecasting forms an essential component of the supply chain process. It's the driver for almost all supply chain related decisions. ... Demand Forecasting provides an estimate of the of goods and services that customers will purchase in the foreseeable future.

Explanation:

Hope This Helps!❣

6 0
3 years ago
Which power system relies on pressurized liquid to flow through tubes and valves to increase power and force?
Kay [80]
B. Hydraulic power system
3 0
3 years ago
Read 2 more answers
Other questions:
  • - You have a bin wrench turning a 1/2 13 UNC bolt. You overcome 1200 lbs of resistance when you
    5·1 answer
  • Royce has a Bevel protractor with a damaged vernier scale. What limitation will Royce face if he uses this protractor to measure
    5·1 answer
  • - Find the file that has the string "You Got Me" in your home directory. - When you have the correct command to do that, add the
    10·1 answer
  • A vehicle is considered to be legally parked if it is parked _____ or more from a pedestrian crosswalk or a marked or unmarked i
    15·1 answer
  • Consider a single, porous, spherical, inert mineral particle. The pores inside the particle are filled with liquid water (specie
    10·1 answer
  • A data bus can be visualized as a multilane highway
    11·1 answer
  • You are asked to design a software package for an On-line Banking System (OBS). The OBS will take requests from its user on the
    14·1 answer
  • Quadrilateral ABCD is a rectangle.<br> If m ZADB = 7k + 60 and mZCDB = -5k + 40, find mZCBD.
    7·1 answer
  • You can help build a safe work environment by using your knowledge of violence prevention strategies to spot what?
    7·1 answer
  • Are you?
    7·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!