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]
2 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]2 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
Consider two different types of motors. Motor A has a characteristic life of 4100 hours (based on a MTTF of 4650 hours) and a sh
Daniel [21]

Answer:B

Explanation:

Given

For motor A

Characteristic life(r)=4100 hr

MTTF=4650 hrs

shape factor(B )=0.8

For motor B

Characteristic life(r)=336 hr

MTTF=300 hr

Shape Factor (B)=3

Reliability for 100 hours

R_a=e^{-\left ( \frac{T-r}{n}\right )B}

R_a=e^{-\left ( \frac{4650-4100}{100}\right )0.8}

R_a=e^{-4.4}=0.01227

For B

R_b=e^{-\left ( \frac{300-336}{100}\right )3}

R_b=e^{1.08}=2.944

B is better for 100 hours

(b)For 750 hours

R_a=e^{-0.5866}=0.55621

R_b=e^{0.144}=1.154

So here B is more Reliable.

3 0
3 years ago
For a bronze alloy, the stress at which plastic deformation begins is 266 MPa and the modulus of elasticity is105 GPa.
pentagon [3]

Answer:

88750 N

Explanation:

given data:

plastic deformation σy=266 MPa=266*10^6 N/m^2

cross-sectional area Ao=333 mm^2=333*10^-6 m^2

solution:

To determine the maximum load that can be applied without

plastic deformation (Fy).

Fy=σy*Ao

   =88750 N

7 0
3 years ago
What is the first test you should do when checking the charging system?
yan [13]

Answer:

Connect the test light in series with the negative post, and start pulling feed wires. The first to check is the heavy charging wire from the alternator. A bad or leaky diode in an alternator is a very common source of overnight battery drain. Connect wires one at a time to see what lead is drawing current.

8 0
2 years ago
Consider a resistor made of pure silicon with a cross-sectional area pf 0.5 μm2, and a length of 50 μm. What is the resistance o
lukranit [14]

Answer: 24 pA

Explanation:

As pure silicon is a semiconductor, the resistivity value is strongly dependent of temperature, as the main responsible for conductivity, the number of charge carriers (both electrons and holes) does.

Based on these considerations, we found that at room temperature, pure silicon resistivity can be approximated as 2.1. 10⁵  Ω  cm.

The resistance R of a given resistor, is expressed by the following formula:

R = ρ L / A

Replacing by the values for resistivity, L and A, we have

R = 2.1. 10⁵ Ω  cm. (10⁴ μm/cm). 50 μm/ 0.5 μm2

R = 2.1. 10¹¹ Ω

Assuming that we can apply Ohm´s Law, the current that would pass through this resistor for an applied voltage of 5 V, is as follows:

I = V/R = 5 V / 2.1.10¹¹ Ω = 2.38. 10⁻¹¹ A= 24 pA

7 0
3 years ago
In a lab, scientists grew several generations of offspring of a plant using the method shown. What conclusion can you make about
exis [7]
Answer: c) they have low genetic variability among them.


When a plant is grown for several generations of offspring of a plant, then there are some common things which are to be noted which are found similar in the offspring and in the parent of the offspring. The flowers and fruits and the time or season they come in are absolutely the same.
6 0
1 year ago
Other questions:
  • Show from the first principles that, for a perfect gas with constant specific heat capacities
    14·1 answer
  • For problems 1 and 2, six luminaires, similar to Style E used in the Commercial Building, are to be installed in a room that is
    13·1 answer
  • Alberta Einstein teaches a business class at Podunk University. To evaluate the students in this class, she has given three test
    13·1 answer
  • Dunno what to ask, okbye
    5·1 answer
  • A single-phase inductive load draws a 10 MW at 0.6 power factor lagging. Calculate the reactive power of a capacitor to be conne
    14·1 answer
  • This app, I'm done, bye... I can't, bye
    11·1 answer
  • Drag each label to the correct location on the table. Match to identify permanent and temporary structures.
    15·1 answer
  • For a nozzle-duct system shown in Fig Q3, the nozzle is designed to produce a Mach number of 2.8 with y = 1.4, The inlet conditi
    14·1 answer
  • 1)
    13·1 answer
  • A jet of water 75m in diameter,issues with a velocity of 30m/s and impinge on a stationary plate which distort its forward motio
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!