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
9. What is the Tribal Assistance Coordination Group (TAC-G)?
Alchen [17]
C is the best answer
5 0
3 years ago
Select the correct answer. Sean is a recent engineering graduate who has joined a new company. Read the profiles of his colleagu
PSYCHO15rus [73]

Answer:

giving advertising to the governor with the state

4 0
3 years ago
Beverage in cans 150 mm long and 60 mm in diameter is initially at 27°C and is to be cooled by placing it in a refrigerator comp
JulijaS [17]

Answer:

See attached pictures.

Explanation:

See attached pictures.

5 0
4 years ago
a television set having apower rating of 120w and electric lawnmower of power rating 1kw are both connected to a 250v supply if
Soloha48 [4]

Answer:

<u>Television </u>

Power = 120 w

p.d = 240 v

I = p / v

I = 120 / 240 = 0.5

Fuse can be used 3A

<u>lawnmower</u>

Power = 1000w

p.d = 240 v

I = 1000/ 240 = 4.16

Fuse can be used = 5A

8 0
3 years ago
Blank is a measure of the amount of matter in a given amount of space
madam [21]

  Hope this helps you buddy!!!!! :}

Mass The measure of the amount of matter in an object.

5 0
3 years ago
Other questions:
  • Why is my lawn mower not starting?
    9·1 answer
  • Inventions for a 9 year old​
    15·1 answer
  • Is the scientific theory a type of physical system
    13·1 answer
  • Difference between a pillar drill and radial arm pillar<br> drill<br>​
    7·1 answer
  • A Newtonian fluid with a viscosity of 50 cP is placed between two large parallel separated by a distance of 8 mm. Each plate has
    7·1 answer
  • 15. A cold-chamber die-casting machine operates automatically, supported by two industrial robots.The machine produces two zinc
    9·2 answers
  • Hot and cold streams of a fluid are mixed in a rigid mixing chamber. The hot fluid flows into the chamber at a mass flow rate of
    9·1 answer
  • Which examples demonstrate tasks commonly performed in Maintenance/Operations jobs? Check all that apply.
    11·2 answers
  • Suppose that the following eight jobs must be scheduled through a car repair facility (repair times are shown in days): Car Repa
    13·1 answer
  • What is the definition of a struck by injury
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!