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
miv72 [106K]
3 years ago
9

Provide an argument justifying the following claim: The average (as defined here) of two Java ints i and j is representable as a

n int, regardless of the lower and upper bounds on the value of an int.
Engineering
1 answer:
ahrayia [7]3 years ago
3 0

Answer:

public static int average(int j, int k) {

return (int)(( (long)(i) + (long)(j) ) /2 );

}

Explanation:

The above code returns the average of two integer variables

Line 1 of the code declares a method along with 2 variables

Method declared: average of integer data type

Variables: j and k of type integer, respectively

Line 2 calculates the average of the two variables and returns the value of the average.

The first of two integers to average is j

The second of two integers to average is k

The last parameter ensures average using (j+k)/2

You might be interested in
If i build thing a and thing a builds thing b did i build thing b
postnew [5]

Answer:

<h3>Yes</h3>

Explanation:

If you build thing "a" and thing "a" builds thing "b" you <u>indirectly</u> build thing "b".

3 0
3 years ago
Read 2 more answers
Select the correct answer.<br> Which equation gives you the amount of work performed?
Fantom [35]

Answer:

Hello

this is the answer

5 0
3 years ago
Carnot heat engine A operates between 20ºC and 520ºC. Carnot heat engine B operates between 20ºC and 820ºC. Which Carnot heat en
nikklg [1K]

Answer:

engine B is more efficient.

Explanation:

We know that Carnot cycle is an ideal cycle for all working heat engine.In Carnot cycle there are four processes in which two are constant temperature processes and others two are isentropic process.

We also kn ow that the efficiency of Carnot cycle given as follows  

\eta =1-\dfrac{T_1}{T_2}

Here temperature should be in Kelvin.

For engine A

\eta =1-\dfrac{T_1}{T_2}

\eta =1-\dfrac{273+20}{520+273}

\eta =0.63

For engine B

\eta =1-\dfrac{T_1}{T_2}

\eta =1-\dfrac{273+20}{820+273}

\eta =0.73

So from above we can say that engine B is more efficient.

4 0
3 years ago
Foam weather stripping is often placed in the frames of doors and
Firdavs [7]

Answer:

prevents weathering

Explanation:

6 0
3 years ago
What different tests did the team perform to come up with a workable design?
I am Lyosha [343]
They ran different shapes and materials through a wind tunnel to see which shape and material would decrease energy output so that it takes in equal COthan it puts out.
5 0
3 years ago
Other questions:
  • To cool a summer home without using a vapor compression refrigeration cycle, air is routed through a plastic pipe (k=0.15 W/m*K,
    15·1 answer
  • A computer has a two-level cache. Suppose that 60% of the memory references hit on the first level cache, 35% hit on the second
    12·1 answer
  • There are two piston-cylinder systems that each contain 1 kg of an idea gas at a pressure of 300 kPa and temperature of 350 K. T
    8·1 answer
  • Please explain the theory of Hydrostatic Thrust on a plane Surface
    14·2 answers
  • Analyze the following ideal transistor circuit. Can use general rule of thumbs for analyzing transistors b-base, c- collector, a
    9·2 answers
  • One cubic meter of nitrogen at 40°C and 340kPa is compressed isoentropically to 0.2m^3. Calculate the final pressure when the ni
    9·1 answer
  • A process consists of two steps: (1) One mole of air at T = 800 K and P = 4 bar is cooled at constant volume to T = 350 K. (2) T
    7·1 answer
  • Express the unsteady angular momentum equation in vector form for a control volume that has a constant moment of inertia I, no e
    9·1 answer
  • Choose the correct word or phrase to complete the sentence to explain human intervention in a machine system.
    13·1 answer
  • How to pass sharp edged tools to another student in welding
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!