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
The two general types of air pollution are _____ and _____.
Verizon [17]
Liquid and gases is the two general types of air pollution
5 0
3 years ago
100 Points and Brainliest
Vedmedyk [2.9K]

Answer:

100 g

Explanation:

We know the concentration is 200 g/L.

Convert 500mL to L: 500mL/1000mL = 0.5 L

Now, multiply this by 200 to cancel out the L units and get grams:

200 g/L * 0.5 L = 100 g

Thus, the answer is 100 grams.

Hope this helps!

5 0
3 years ago
Can anybody complete this for me?
NeTakaya

Answer:

I wish i could

Explanation:

3 0
3 years ago
Elements can be represented by chemical symbols. Which of the following is the correct way to write the chemical symbol for sodi
mixer [17]

Na

hope this helps :)

4 0
3 years ago
Four gases were combined in a gas cylinder with these partial pressures: 3. 5 atm N2, 2. 8 atm O2, 0. 25 atm Ar, and 0. 15 atm H
aksik [14]

The total pressure of the gas has been 11.9 atm.

The partial pressure has been the pressure exerted by the individual gas in the mixture.

According to the Dalton's law of Partial pressure, the pressure of the gas has been the sum of the partial pressure of each gas in the mixture.

<h3 /><h3>Computation for the pressure of gas</h3>

The given gas has partial pressure of Nitrogen, P_{N_2}=3.5\;\rm atm

The partial pressure of Oxygen, P_{O_2}=8\;\rm atm

The partial pressure of Argon, P_{Ar}=0.25\;\rm atm

The partial pressure of Helium, P_{He}=0.15\;\rm atm

The total pressure, (<em>P</em>) of the gas has been given as:

P=P_{N_2}\;+\;P_{O_2}\;+\;P_{Ar}\;+\;P_{He}\\&#10;P=3.5\;+8\;+\;0.25\;+\;0.15\;\text{atm}\\&#10;P=11.9\;\rm atm

The total pressure of the gas has been 11.9 atm.

Learn more about the vapor pressure, here:

brainly.com/question/25356241

7 0
3 years ago
Other questions:
  • This part insulates the reaction chamber from the transfer of heat to or from the surrounding environment. a.b.c.
    6·2 answers
  • Exactly one mole of an ideal gas is contained in a 2.00 liter container at 1,000 K. What is the pressure exerted by this gas?
    5·2 answers
  • Pizza is an example of a<br> Of What Compound?<br> A) Mixture<br> B) Molecule<br> C) Formula
    10·1 answer
  • Describe the location of the positive charge of the atom in j. j. thomson’s plum pudding model.
    8·2 answers
  • How many atoms are there in total in a molecule of sulfur trioxide, SO3?
    13·1 answer
  • Why can't you use acidic conditions (such as aqueous hydrochloric acid) for the addition of a grignard reagent to a ketone?
    14·1 answer
  • Study the Lewis dot diagram for nitrogen. Explain what is correct and what is incorrect about the diagram. Use details to suppor
    14·1 answer
  • Help with this please
    8·1 answer
  • An aqueous solution contains
    6·1 answer
  • What is the empirical formula of a compound containing 5.03 grams carbon, 0.42 grams hydrogen, and 44.5 grams chlorine?
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!