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
A particle is emitted from a smoke stack with diameter of 0.05 mm. In order to determine how far downstream it travels it is imp
Nikolay [14]

Answer: downward velocity = 6.9×10^-4 cm/s

Explanation: Given that the

Diameter of the smoke = 0.05 mm = 0.05/1000 m = 5 × 10^-5 m

Where radius r = 2.5 × 10^-5 m

Density = 1200 kg/m^3

Area of a sphere = 4πr^2

A = 4 × π× (2.5 × 10^-5)^2

A = 7.8 × 10^-9 m^2

Volume V = 4/3πr^3

V = 4/3 × π × (2.5 × 10^-5)^3

V = 6.5 × 10^-14 m^3

Since density = mass/ volume

Make mass the subject of formula

Mass = density × volume

Mass = 1200 × 6.5 × 10^-14

Mass M = 7.9 × 10^-11 kg

Using the formula

V = sqrt( 2Mg/ pCA)

Where

g = 9.81 m/s^2

M = mass = 7.9 × 10^-11 kg

p = density = 1200 kg/m3

C = drag coefficient = 24

A = area = 7.8 × 10^-9m^2

V = terminal velocity

Substitute all the parameters into the formula

V = sqrt[( 2 × 7.9×10^-11 × 9.8)/(1200 × 24 × 7.8×10^-9)]

V = sqrt[ 1.54 × 10^-9/2.25×10-4]

V = 6.9×10^-6 m/s

V = 6.9 × 10^-4 cm/s

6 0
3 years ago
how are the construction steps for bisecting an angle similar to the steps you would have taken to construct and bisect a line s
GREYUIT [131]

Answer:

does the question entail anything else?

Explanation:

5 0
3 years ago
A car travels from A, due north to a town B 4 km away. It then travels due east until it arrives town C 5 km from B. determine t
morpeh [17]

Answer:

A to C = 6.4 km

Explanation:

A to B = 4 km

B to C = 5 km

A to C =  using pythagorean theorem

a² + b² = c²

a = A to B = 4

b = B to C = 5

c = A to C

c² = 4² + 5²

c = 6.4 km (A to C)

8 0
3 years ago
If you are exposed to potentially infectious material via a sharps injury, what should you do immediately?
Sergio039 [100]

The correct answer is "immediately flood the area with water and clean the wound."

Further Explanation:

If someone is exposed to a potentially infectious material with a sharps item such a needle, they need to wash the area with clean water immediately. It must be a steady flow of water to get out any potential infectious material.

After flushing the injury with water, you will then wash the area or exposed skin with soap, if at all possible use a disinfectant on the area.

The person who was injured should seek medical assistance for tests to be sure that they have not been affected.

Learn more about infectious material at  brainly.com/question/10928952

#LearnwithBrainly

4 0
3 years ago
1. A piston having a diameter of 5.48 inches and a length of 9.50 in slides downward with a velocity, V, through a vertical pipe
const2013 [10]

Answer:

V = 0.00459 ft/s  

Explanation:

Since the Piston is moving downwards with a constant velocity V, from the first Newton’s law we know that all vertical forces, must have zero resultant (their sum over vertical axis must equal to zero). Therefore, force that pulls the piston down, is equalized by force of viscous friction Fd= Fvf = 0.5lb (lb here is the pound-force unit). We will relate F ѵ f  with τ and from that derive the equation for V.

Fѵf = τ  . A

Where τ  = µ. du/dy = µ . V/b  , and A = π . D . l from this Follows:

Fѵf= (V.  A .µ )/b     V= ( Fѵf .b )/(A.µ)    

Placing all the known values in the equation ( remember  to transform inches to feet, by multiplying inches values with the factor 1/12), we obtain :  

ft2

V = ((0.5lb)   .   (0.002/12 ft))/(π   .   (5.48/12 ft)  .  (9.50/12 ft)  .  (0.016 lb.s/(ft^2 )))

V = 0.00459 ft/s  

Download docx
3 0
3 years ago
Other questions:
  • An insulated piston-cylinder device contains 5 L of saturated liquid water at a constant pressure of 175 kPa. Water is stirred b
    9·1 answer
  • Write a program that prompts the user to enter time in 12-hour notation. The program then outputs the time in 24-hour notation.
    6·1 answer
  • "The office personnel at Garden Glory use a database application to record services and related data changes in this database. F
    9·1 answer
  • What impact does modulus elasticity have on the structural behavior of a mechanical design?
    14·1 answer
  • Use the scoring system described to calculate the alignment score for These are two lines of 14 letters aligned with each other.
    5·1 answer
  • Estimate the luminosity of a 3 -solar-mass main-sequence star; of a 9 -solar-mass main-sequence star. Can you easily estimate th
    5·1 answer
  • The role of civil and structural engineer is to produce buildings for
    10·1 answer
  • Using your knowledge of how an ATM is used, develop a set of use cases that could serve as a basis for understanding the require
    15·1 answer
  • Refrigerant 134a enters the evaporator of a refrigeration system operating at steady state at -16oC and a quality of 20% at a ve
    13·1 answer
  • The team needs to choose a primary view for the part drawing. Three team members make suggestions:
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!