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
SOS TESTING:
andrezito [222]

Answer:

Condensation

Explanation:

An exothermic process is one in which heat is lost. Condensation is a change of state from gas to liquid. Thus is loses heat.

HOPE THIS HELPED

4 0
3 years ago
100.mL of a .795 M solution of KBr is diluted to 500.mL. what is the new concentration of the solution?
kap26 [50]

Answer:

0.159 M

Explanation:

convert from mL to L then use the equation:

M1V1 = M2V2

rearrange to find M2

\frac{M1V1}{V2} = M2

\frac{(0.795 M)(0.100 L)}{0.500 L} = 0.159 M

4 0
2 years ago
Given that you started with 28.5 g of K3PO4, how many grams of KNO3 can be<br> produced?
Irina18 [472]

Mass of KNO₃ : = 40.643 g

<h3>Further explanation</h3>

Given

28.5 g of K₃PO₄

Required

Mass of KNO₃

Solution

Reaction(Balanced equation) :

2K₃PO₄ + 3 Ca(NO₃)₂ = Ca₃(PO₄)₂ + 6 KNO₃

mol K₃PO₄(MW=212,27 g/mol) :

= mass : MW

= 28.5 : 212,27 g/mol

= 0.134

Mol ratio of K₃PO₄ : KNO₃ = 2 : 6, so mol KNO₃ :

= 6/2 x mol K₃PO₄

= 6/2 x 0.134

= 0.402

Mass of KNO₃ :

= mol x MW KNO₃

= 0.402 x 101,1032 g/mol

= 40.643 g

8 0
2 years ago
Should the line of best- fit travel through the origin of the graph ? Explain your reasoning
Finger [1]
 <span>I would say only if one of your data points is the origin. But your experiment could have started with a non-zero velocity, for instance, which would rule out the origin as one of your data points. Even so, a "best fit" is not meant to be perfect, it is only meant to be the best that you can do with your particular data set.</span>
8 0
3 years ago
Can someone answer 4 for me please?
Mice21 [21]
I can’t see the whole question......
4 0
3 years ago
Other questions:
  • When a system performs work on the surroundings, the work is reported with a negative sign. True of False
    6·1 answer
  • For which compound does 0.26 mole weigh 13g
    11·1 answer
  • In a group 1 analysis, a student obtained a precipitate containing both AgCl and PbCh. Which of the following reagents would ena
    12·1 answer
  • Is tea a pure substance?
    10·2 answers
  • A gas that exerts a pressure of 2.15 atm in a container with a volume of 0.0900 L will exert a pressure of ___ atm when transfer
    15·1 answer
  • Use your periodic table of elements. Take any element from the second column, except for beryllium and calcium, and answer the f
    10·2 answers
  • The concentration of oxalate ion (C2O42-) in a sample can be determined by titration with a solution of permanganate ion (MnO4-)
    13·1 answer
  • Have you ever eaten a coin?
    12·1 answer
  • A student is interested in resource recovery through composting. Which field
    11·1 answer
  • A fish tank holds 45 gal of water. How many kilograms of water are in the fish tank?
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!