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
Yield for this reaction?<br> Reaction: N2(g) + 3 H2(g) → 2 NH3 (g)
andriy [413]

Answer:

Yes, yield.

Explanation:

N2(g) + 3 H2(g) → 2 NH3 (g) balanced equation

First, find limiting reactant:  

Moles H2 = 1.83 g x 1 mole/2 g = 0.915 moles H2

Moles N2 = 9.84 g N2 x 1 mole/28 g = 0.351 moles N2

The mole ratio of H2: N2 is 3:1, so H2 is limiting (0.915 is less than 3 x 0.351)

Theoretical yield of NH3 = 0.915 mol H2 x 2 mol NH3/3 mol H2 = 0.61 moles NH3

6 0
3 years ago
What is the fee for a law and rules book
aivan3 [116]

$14.00

fee for a Law and rule book

7 0
3 years ago
O que são processos físicos de separação das misturas? Dê 3 exemplos
chubhunter [2.5K]

Answer:

Explanation:

The physical methods of separating mixtures are used in sorting a mixture of substances.

It requires no chemical changes occurring between their components and parts in any significant way.

Examples are:

  1. Decantation
  2. Filtration
  3. Sublimation
  4. Magnetism
  5. Centrifugation

The methods simply relies on the physical properties of matter.

8 0
3 years ago
Compare and contrast the differences between plant animal cells
Step2247 [10]

Answer:

are there answer choices? chloroplasts are in plant cells, these give it a green color  

Explanation:

6 0
3 years ago
Read 2 more answers
How is the law of conservation of matter represented in a chemical reaction?
blondinia [14]

Answer:

By balancing the chemical equation  

Explanation:

The Law of Conservation of Matter states that matter cannot be destroyed nor created.

That is, you must have the same amount of matter before and after a reaction.

Atoms are made of matter, so you must have the same number of each type of atom in the reactants as in the products. You must balance the equation.

Consider the reaction

2H₂ + O₂ ⟶ 2H₂O

You must have 2s in front of H₂ and H₂O to balance the atoms.

They give you four atoms of H and two atoms of O on each side of the arrow.

5 0
3 years ago
Other questions:
  • Why can liquid water never go over the boiling point temperature? Where is the energy (heat) that is being added going?
    14·1 answer
  • What is the mass of 1.00 mile of NE
    8·1 answer
  • Pick the compound with the highest boiling point in each pair. match the words in the left column to the appropriate blanks in t
    15·1 answer
  • Which of the following are ionic, and which are molecular? (a) Sc2O3 ionic molecular (b) NaI ionic molecular (c) SCl2 ionic mole
    7·1 answer
  • During the rock cycle, rocks get broken apart by weathering, carried along by erosion, and eventually deposited in a body of wat
    8·2 answers
  • Describe what happened when Ag+ combined with Na2CO3. what does this indicate?
    13·1 answer
  • Explain the conductance result for pure H2O?
    15·1 answer
  • Pls help me solve those.Thank youu!
    15·1 answer
  • What cause a earthquake
    14·1 answer
  • List the universities of nepal and explain about one of them.​
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!