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
What is the main chemical compound cells use for energy?
Ksenya-84 [330]
The main chemical compound cells use for energy is Adenosine Triphosphate (ATP)
7 0
3 years ago
Compounds containing potassium and oxygen
padilas [110]

Answer: The law of proportion states that elements combine in whole number ratios. The gram readings for K are multiples of each other, both in grams and moles.

Let us compare the ratios:

2.44 grams/1.22 grams = 2

4.89 grams/2.44 grams = 2

Therefore, Potassium always combines with Oxygen in a ratio of 2  is to 1.

4 0
3 years ago
How many molecules of N2O gas are in 250 L at STP?
Fittoniya [83]

Answer:

I have no idea all I know is poop.

Explanation:

Because I said so

4 0
2 years ago
Question 1 (6 points) a. Fill in the blanks in the following paragraph to correctly describe the nucleus of an atom. (1 point)an
g100num [7]

Answer:  No blnks, but I'll do my best.

Proton and neutrons

unstable

nuclear

stable

Explanation:  Requires ISP to see the blanks

3 0
3 years ago
Distinguish between single and double replacement reactions and give an example of<br> each.
statuscvo [17]

Answer:

Anabolism builds complex molecules from simpler ones, while catabolism breaks large molecules into smaller ones.

Explanation:

5 0
3 years ago
Other questions:
  • What does a Stationary object line look like?
    5·1 answer
  • Which of the following is the smallest volume? (2 points)   30 cm3 2,500 mL 25 m3 2.0 x 10-1 L 
    5·1 answer
  • C. in the reaction of copper and silver nitrate, a new substance appeared in the test tube. describe the physical appearance of
    6·1 answer
  • 32.7 grams of water vapor takes up how many liters at standard temp and pressure (273 K and 100 kPa)
    13·1 answer
  • The average atomic mass for any element will be closest to the average atomic mass of the ________ isotope.
    12·1 answer
  • If sock type A is pulled first, sock type B second, and sock type C third, the fourth sock type must match one of A, B, or C.
    7·1 answer
  • What is the formula of the ion formed when cadmium achieves a pseudo-noble-gas electron configuration? consult the periodic tabl
    14·1 answer
  • A student decides to dissolve crackers in their soup as fast as possible. They must first increase the surface area of the crack
    13·1 answer
  • Calculate the volume of hydrogen produced during the electrolysis of dilute sulphuric acid if you use a current of 1A for 15minu
    8·1 answer
  • HELPPPPPPPP ILLL APPLEPAY YOU 20 dollars
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!