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
Your study space does not need to be quiet as long as you can ignore any noise coming from the space true or false?
Makovka662 [10]

Answer:

False

Explanation:

When you're studying, you need to make sure that you can focus properly. This means that you shouldn't be hungry or too full and that you should be well-rested, in a quiet room with good lighting and no distractions. Noise is never good when you need to memorize something. Some people can partially ignore it as long as it isn't too loud, but it will begin to bother them eventually. That's why it's better to study in a quiet room.

3 0
2 years ago
Read 2 more answers
How large a force is required to accelerate a 1300 kg car from rest to a speed of 20 m/s in a distance of 80 m?
topjm [15]

F=m*a

F=80*20

F =1600 ans"

7 0
2 years ago
Read 2 more answers
A large particle composite consisting of tungsten particles within a copper matrix is to be prepared. If the volume fractions of
OverLord2011 [107]

Answer:

Upper bounds 22.07 GPa

Lower bounds 17.59 GPa

Explanation:

Calculation to estimate the upper and lower bounds of the modulus of this composite.

First step is to calculate the maximum modulus for the combined material using this formula

Modulus of Elasticity for mixture

E= EcuVcu+EwVw

Let pug in the formula

E =( 110 x 0.40)+ (407 x 0.60)

E=44+244.2 GPa

E=288.2GPa

Second step is to calculate the combined specific gravity using this formula

p= pcuVcu+pwTw

Let plug in the formula

p = (19.3 x 0.40) + (8.9 x 0.60)

p=7.72+5.34

p=13.06

Now let calculate the UPPER BOUNDS and the LOWER BOUNDS of the Specific stiffness

UPPER BOUNDS

Using this formula

Upper bounds=E/p

Let plug in the formula

Upper bounds=288.2/13.06

Upper bounds=22.07 GPa

LOWER BOUNDS

Using this formula

Lower bounds=EcuVcu/pcu+EwVw/pw

Let plug in the formula

Lower bounds =( 110 x 0.40)/8.9+ (407 x 0.60)/19.3

Lower bounds=(44/8.9)+(244.2/19.3)

Lower bounds=4.94+12.65

Lower bounds=17.59 GPa

Therefore the Estimated upper and lower bounds of the modulus of this composite will be:

Upper bounds 22.07 GPa

Lower bounds 17.59 GPa

7 0
2 years ago
A discrete MOSFET common-source amplifier has RG = 2 MΩ, gm = 5 mA/V, ro = 100 kΩ, RD = 20kΩ, Cgs = 3pF, and Cgd = 0.5pF. The am
Papessa [141]

Answer:

a) -36.36 V/V

b) 15.17 kHz

c) 1.6 GHz

Explanation:

See attached picture.

7 0
3 years ago
True or false tensile forces are smaller in arch bridges
Ivan

Answer:

True

Explanation:

The tensile forces are small in most arches and usually negligible.

4 0
2 years ago
Other questions:
  • . A constant current of 1 ampere is measured flowing into the positive reference terminal of a pair of leads whose voltage we’ll
    10·1 answer
  • Consider a 1.2-m-high and 2-m-wide glass window with a thickness of 6 mm, thermal conductivity k = 0.78 W/m·K, and emissivity ε
    5·1 answer
  • A can of engine oil with a length of 150 mm and a diameter of 100 mm is placed vertically in the trunk of a car. On a hot summer
    8·1 answer
  • 1. Asphyxiation is a hazard posed by Compressed Natural Gas (CNG) vehicles and can be detected when you notice
    7·1 answer
  • Which is the required type of fire extinguisher for standard naval vessels
    9·1 answer
  • Route Choice The cost of roadway improvements to the developer is a function of the amount of traffic being generated by the the
    11·1 answer
  • Lets try to get to 100 sub before charismas day <br> Jordan Gracia 32 sub and 5 videos
    13·2 answers
  • Choose the correct word or phrase to complete the sentence to explain human intervention in a machine system.
    13·1 answer
  • What are the BENEFITS and RISKS of using automobiles?
    10·1 answer
  • In a typical American building, most modern lighting systems must use what voltage?
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!