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
If the atomic number of an element is 6 and its mass number is 14, how many neutrons are contained in the nucleus?
aksik [14]

Answer:

8

Explanation:

because 14 - 6 is 8

4 0
3 years ago
What is the beta decay of uranium-237
Airida [17]
During a phenomenon called beta decay the neutron of the isotope uranium 237 emits/releases an electron causing an increase of atomic number. With the reference of a periodic table the "new" element is Neptunium or Np-237. 
3 0
3 years ago
PLEASE HELP !!!!!!!
Romashka-Z-Leto [24]

Answer:

b

Explanation:

3 0
3 years ago
I NEED HELP!!!!!!!!!!!!!!!!!!!!!!!
Karolina [17]

Answer:

B.Self powered

Explanation:

They move by themselves.Hope this answer helps you ;)

6 0
3 years ago
What factors do you think should be considered in selecting a metal to use to reclaim copper? Which factor do you think is the m
Lana71 [14]

Answer:

Aluminum

Explanation:

<h3> <em>Aluminum would be the best choice to reuse  copper from the copper chloride solution because it  In the aluminum–copper reaction, the chloride ions help remove the aluminum oxide coating so that a reaction can take place through the oxidation of aluminum and the reduction of copper ions.The aluminum–copper chloride reaction is a simplified version of a waste reclamation and reduction strategy for handling toxic-waste materials. </em></h3>
7 0
2 years ago
Other questions:
  • Water is a polar molecule, meaning the electrons that are shared between the atoms aren't shared equally so oxygen attracts more
    14·1 answer
  • state how matter moves through the biosphere. state how energy moves through the biospere. explian each statement using examples
    11·1 answer
  • Which will have both the highest ionization energy and the largest atomic
    9·1 answer
  • How can heat from the sun transfer from the cement to your feet
    5·1 answer
  • Would you define boiling point and melting point as a periodic table family trend (vertical groups), period trend (horizontal ro
    14·2 answers
  • 4. A scientific theory is
    13·1 answer
  • Is soda homogeneous or heterogeneous? ​
    11·1 answer
  • What is the final concentration when 5 ml of a 2.5M copper sulphate solution is diluted to 750 ml?
    10·1 answer
  • 2. A gas occupies 320. ml at a pressure of 420.5 mmHg. Determine the volume if the pressure is decreased to 300. mmHg.
    14·1 answer
  • Why is Potassium not used in school laboratory
    13·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!