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
MArishka [77]
3 years ago
14

Design and implement a program (name it SumValue) that reads three integers (say X, Y, and Z) and prints out their values on sep

arate lines with proper labels, followed by their average with proper label. Comment your code properly. Format the outputs following the sample runs below.
Sample run 1:
X = 3
Y = 2
Z = 4
Average = 3.0
Sample run 1:
X = 7
Y = 8
Z = 10
Average = 8.333333333333334
Sample run 1:
X = 7
Y = -3
Z = -5
Average = -0.3333333333333333
Chemistry
1 answer:
rjkz [21]3 years ago
3 0

Answer:

class sum (

public static void sumofvalue (int m, int n, int p)

{

System.out.println(m);

System.out.println(n);

System.out.println(p);

int SumValue=m+n+p;

System.out.println("Average="+Sumvalue/3);

}

)

Public class XYZ

(

public static void main(String [] args)

{

sum ob=new sum();

int X=3;

int X=4;

int X=5;

ob.sumofvalue(X,Y,Z);

int X=7;

int X=8;

int X=10;

ob.sumofvalue(X,Y,Z);

}

)

Explanation:

The above program is made in Java, in which first we have printed value in a separate line. After that, the average value of those three values has been printed according to the question.

The processing of the program is given below in detail

* The first one class named 'sum' has been created which contains the function to print individual value and the average of those three values.

* In seconds main class named 'XYZ', the object of that the above class had been created which call the method of the above class to perform functions.

* In the main class values are assigned to variables X, Y, Z.

You might be interested in
How does the kinetic-molecular theory explain the following properties of liquids:
Tcecarenko [31]

Answer:

"Kinetic energy of the gas is more as compared to that of the liquids. But when compare it to the solid, kinetic energy of liquid is more."

Explanation:

a) Relatively high density : This happens as a result of the tight or packed or can be say close arrangement of the particles.

b) Ability to diffuse : As we know that in gases the constant and the random motion of the particles of the liquid leads to diffusion. But it is very slow as compared to the gases and also porque liquid particles are close together.

c) Ability to evaporate:This happens as a result of the molecules of the liquid having different kinetic energies with particles having higher than that of the average energies that move faster.

5 0
4 years ago
In an acid-base titration experiment, 50 mL of a 0.05 M solution of acetic acid (Ka= 1.75 x 10-5 ) was titrated with a 0.05M sol
Viktor [21]

Answer:

(3) 5.36

Explanation:

Since this is a titration of a weak acid before reaching equivalence point, we will have effectively a buffer solution. Then we can use the Henderson-Hasselbalch equation to answer this question.

The reaction is:

HAc + NaOH ⇒ NaAc + H₂O

V NaOH = 40 mL x 1 L/1000 mL = 0.040 L

mol NaOH reacted with HAc = 0.040 L x 0.05 mol/L = 0.002 mol

mol HAC originally present = 0.050 L x 0.05 mol/L = 0.0025 mol

mol HAc left after reaction = 0.0025 - 0.002 = 0.0005

Now that we have calculated the quantities of the weak acid and its conjugate base in the buffer, we just plug the values into the equation

pH = pKa + log ((Ac⁻)/(HAc))

(Notice we do not have to calculate the molarities of  Ac⁻ and HAc because the volumes cancel in the quotient)

pH = -log (1.75 x 10⁻⁵) + log (0.002/0.0005) = 5.36

THe answer is 5.36

5 0
3 years ago
Read 2 more answers
The diagram below shows the atoms involved in forming table salt. Which statement best describes what happens next ?
Ghella [55]

An ionic compound is composed of ionic bonds that are formed by transfer of electrons from one atom to the other. The atom that loses electrons acquires a positive charge (cation) while that which gains electrons acquires a negative charge.

In the case of sodium chloride; Sodium Na has 1 electron in its outer orbital while Chlorine Cl has 7 electrons. Thus, Cl requires 1 electron to complete its octet. This electron is donated by Na.

Thus, NaCl is essentially, Na⁺Cl⁻

Ans D) Chlorine becomes an anion by gaining an electron from sodium

5 0
3 years ago
Read 2 more answers
How many grams of oxygen are required to react with 13.0 grams of octane (C8H18) in the combustion of octane in gasoline?
egoroff_w [7]

Grams of oxygen are required to react with 13.0 grams of octane (C8H18) in the combustion of octane in gasoline is 45.5g

Octane is a hydrocarbon which burns in gasoline in presence of oxygen according to the given balanced chemical equation,

2C₈H₁₈ + 25O₂------> 16CO₂ + 18H₂0

Molar mass of octane = 114.23g/mol

Molar mass of Oxygen = 32g/mol

According to the stiochiometry of the balanced equation the mole ratio of Octane and Oxygen is 2:25

2 mole of octane needs 25 mole of oxygen

1 mole of octane needs 12.5 moleof oxygen

114.23g of octane needs 400g of oxygen

13g   of octane  needs 45.5g of oxygen

Mass of oxygen needed =45.5g

Hence, the Mass of oxygen needed is 45.5g for the combustion of octane in gasoline.

Learn more about Octane here, brainly.com/question/21268869

#SPJ4

5 0
2 years ago
Hydrochloric acid reacts faster with powdered zinc than with an equal mass of zinc strips because the greater the surface area o
inysia [295]

Answer:

increases the frequency of particle collisions

Explanation:

One factor upon which the rate of reaction depends is the surface area of reactants.

According to the collision theory, reactions occur when reactant particles having the required (activation) energy collide with each other, this collision is inelastic. However, collision of particles having energies less than the activation energy results in elastic collisions and no chemical reaction.

The more the exposed surface area of reactants, the greater the number of particles that come into contact with each other and the more the chances of frequent effective collisions that lead to reaction.

Thus, powdered zinc reacts faster with hydrochloric acid than zinc strips

7 0
3 years ago
Other questions:
  • gypsum is hydrated calcium sulfate. a 4.89 g sample of this hydrate was heated, and after the water was driven off, 3.87 g anhyd
    9·1 answer
  • Im bored someone add my discord and talk to me <br>--&gt; bestface#3185 &lt;--
    9·1 answer
  • Determine the balanced chemical equation for this reaction. C8H18(g)+O2(g)→CO2(g)+H2O(g)
    6·1 answer
  • Which of the following would not increase the rate of most reactions? A. Removing an inhibitor B. Lowering the concentration of
    8·2 answers
  • Inside a volcano how do the slanted layers of hardened lava get there
    8·1 answer
  • Which properties describe water? strong surface tension, weak surface tension, denser as a solid, denser as a liquid, nonpolar,
    5·1 answer
  • In which of the substances in Figure 3-1 are the forces of attraction among the particles so weak that they can be ignored under
    13·2 answers
  • Which form of energy does a car's engine convert into mechanical energy?
    5·1 answer
  • A scientist tested a series of solutions to determine their pH, and recorded the results in this table.
    13·1 answer
  • Which of the following bonds is nonpolar?<br> S-CI<br> Na--C<br> Br--CI<br> C--O
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!