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
You installed a new 40 gallon water heater with a 54,000 BTUh burner. The underground water temperature coming into the house is
kipiarov [429]
14256000. Kanjiuijhgg
5 0
3 years ago
Read 2 more answers
A heat pump with an ideal compressor operates between 0.2 MPa and 1 MPa. Refrigerant R134a flows through the system at a rate of
solmaris [256]

Answer:

The mass flow rate of refrigerant is 0.352 kg/s

Explanation:

Considering the cycle of an ideal heat pump, provided in the attachment, we first find enthalpy at state B and D. For that purpose, we use property tables of refrigerant R134a:

<u>At State A</u>:

From table, we see the enthalpy and entropy value of saturated vapor at 0.2 MPa. Therefore:

ha = 244.5 KJ/kg

Sa = 0.93788 KJ/kg.k

<u>At State B</u>:

Since, the process from state A to B is isentropic. Therefore,

Sb = Sa = 0.93788 KJ/Kg

From table, we see the enthalpy value of super heated vapor at 1 MPa and Sb. Therefore:

hb = 256.85 KJ/kg                          (By interpolation)

<u>At State C</u>:

From table, we see the enthalpy and entropy value of saturated liquid at 1 MPa. Therefore:

hc = 107.34 KJ/kg

Now, from the diagram it is very clear that:

Heat Loss = m(hb = hc)

m = (Heat Loss)/(hb - hc)

where,

m = mass flow rate = ?

Heat Loss = (180,000 Btu/hr)(1.05506 KJ/1 Btu)(1 hr/3600 sec)

Heat Loss = 52.753 KW

Therefore,

m = (52.753 KJ/s)/(256.85 KJ/kg - 107.34 KJ/kg)

<u>m = 0.352 kg/s</u>

5 0
3 years ago
When your fixing a car, what is the first thing you want to do?
Shtirlitz [24]

Answer:

Changing oil.

Explanation:

You need to regularly check and change your car’s oil to ensure smooth running of the vehicle and to prolong the lifespan of its engine.

6 0
3 years ago
Antilaser eyewear should be worn when a laser​ level's output is greater than​ ____
creativ13 [48]

Answer: 5mW

Explanation:

8 0
3 years ago
Steam enters an adiabatic turbine at 10MPa and 500 C and leaves at 10 kPa with a quality of 90%. Neglecting the changes in kinet
Amanda [17]

Answer:

flow ( m ) = 4.852 kg/s

Explanation:

Given:

- Inlet of Turbine

        P_1 = 10 MPa

        T_1 = 500 C

- Outlet of Turbine

        P_2 = 10 KPa

        x = 0.9

- Power output of Turbine W_out = 5 MW

Find:

Determine the mass ow rate required

Solution:

- Use steam Table A.4 to determine specific enthalpy for inlet conditions:

          P_1 = 10 MPa

          T_1 = 500 C            ---------- > h_1 = 3375.1 KJ/kg

- Use steam Table A.6 to determine specific enthalpy for outlet conditions:

          P_2 = 10 KPa       -------------> h_f = 191.81 KJ/kg

          x = 0.9                  -------------> h_fg = 2392.1 KJ/kg

          h_2 = h_f + x*h_fg

          h_2 = 191.81 + 0.9*2392.1 = 2344.7 KJ/kg

- The work produced by the turbine W_out is given by first Law of thermodynamics:

          W_out = flow(m) * ( h_1 - h_2 )

          flow ( m ) = W_out / ( h_1 - h_2 )

- Plug in values:

          flow ( m ) = 5*10^3 / ( 3375.1 - 2344.7 )

          flow ( m ) = 4.852 kg/s

3 0
3 years ago
Other questions:
  • What is EL Niño?
    9·1 answer
  • Type a statement using srand() to seed random number generation using variable seedVal. Then type two statements using rand() to
    5·1 answer
  • A furnace wall consisting of 0.25 m of fire clay brick, 0.20 m of kaolin, and a 0.10‐m outer layer of masonry brick is exposed t
    8·1 answer
  • At an auction of antiques, a bidder for a particular porcelain statue would be trying to ________(a) Maximize the difference bet
    14·1 answer
  • The products of combustion from a burner are routed to an industrial application through a thin-walled metallic duct of diameter
    11·1 answer
  • "It is better to be a human being dissatisfied than a pig satisfied; better to be Socrates dissatisfied than a fool satisfied. A
    7·1 answer
  • A slab-milling operation is performed on a 0.7 m long, 30 mm-wide cast-iron block with a feed of 0.25 mm/tooth and depth of cut
    14·1 answer
  • For binary flash distillation, we discussed in class that there are 8 variables (F, ZA, V, ya, L, XA, P and T) and 4 equations d
    10·1 answer
  • 7–2 Cooling of a Hot Block by Forced Air at High
    6·1 answer
  • Why is engineering profession important ​
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!