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 rate at which energy is transferred is called a power b kinetic energy c work d time
grandymaker [24]
This is one of the definitions that is used to define C. Work. It is a change in energies from one form to another within some time frame.
8 0
4 years ago
Read 2 more answers
consider the substance:carbon dioxide, gold, bronze, alcohol, iron, and, oxygen.from the list , select the substances that :(1)
lbvjy [14]

Answer:

Oxygen

Explanation:

 · Air decolorization makes use of chromophores’ instability on oxygen to decolorize the oil by air-oxidizing pigments. For example, the carotenoid and chlorophyll in the oil are very unstable because of their structure, which is easy to be discolored under the action of oxygen. However, air decolorization leads to thermal oxidation of the oil, too.

5 0
3 years ago
A mixture of 0.10 mol of NO, 0.050 mol of H2, and 0.10 mol of H2O is placed in a 1.0- L vessel at 300 K . The following equilibr
umka2103 [35]

Answer:

The concentration of N2 at the equilibrium will be 0.019 M

Explanation:

Step 1: Data given

Number of moles of NO = 0.10 mol

Number of moles of H2 = 0.050 mol

Number of moles of H2O = 0.10 mol

Volume = 1.0 L

Temperature = 300K

At equilibrium [NO]=0.062M

Step 2: The balanced equation

2NO(g) + 2H2(g) → N2(g) + 2H2O(g)

Step 3: Calculate the initial concentration

Concentration = Moles / volume

[NO] = 0.10 mol / 1L = 0.10 M

[H2] = 0.050 mol / 1L = 0.050 M

[H2O] = 0.10 mol / 1L = 0.10 M

[N2] = 0 M

Step 4: Calculate the concentration at the equilibrium

[NO] at the equilibrium is 0.062 M

This means there reacted 0.038 mol (0.038M) of NO

For 2 moles NO we need 2 moles of H2 to produce 1 mol N2 and 2 moles of H2O

This means there will also react 0.038 mol of H2

The concentration at the equilibrium is 0.050 - 0.038 = 0.012 M

There will be porduced 0.038 moles of H2O, this means the final concentration pf H2O at the equilibrium is 0.100 + 0.038 = 0.138 M

There will be produced 0.038/2 = 0.019 moles of N2

The concentration of N2 at the equilibrium will be 0.019 M

5 0
3 years ago
15-9+6+3 =? What's the answer of this? ​
julia-pushkina [17]
15-9+6+3=

ANSWER

15
6 0
3 years ago
A porpoise sends out an ultrasonic burst and hears the echo off his favorite food in 0.13 seconds. How far away is the food sour
aalyn [17]

Answer:

The porpoise would hear its echo first because sound travels faster in water than in air. The bat would hear its echo first because the amplitude of sound waves ...

Explanation:

5 0
3 years ago
Other questions:
  • Which shows the correct relationship?
    11·2 answers
  • Ethanol is produced from ethene by hydration in the presence of a catalyst.<br> What is hydration?
    6·1 answer
  • Help please!
    11·1 answer
  • To answer this question, you will read two articles. First, read Article 1.
    7·2 answers
  • 11. Which do you think is more important in forming personality---environment or heredity? Explain your answer.​
    15·1 answer
  • I'll give brainliest
    9·1 answer
  • 1. In 1897, I made a beam of electrons in a vacuum tube. Who
    6·1 answer
  • as the solar nebula cooled which compounds were the first to condense from a gas to a solid? Rock water ice or metal
    10·1 answer
  • What is an adaptive organ of duck​
    9·2 answers
  • The moving of molecules from areas of high concentration to that of low concentration to gain energy is best described as
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!