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
83ef0c8
kumpel [21]

Answer:

0.17325 moles per liter per second

Explanation:

For a first order reaction;

in[A] = in[A]o - kt

Where;

[A]= concentration at time t

[A]o = initial concentration

k= rate constant

t= time taken

ln0.5 =ln1 - 2k

2k = ln1 - ln0.5

k= ln1 - ln0.5/2

k= 0 -(0.693)/2

k= 0.693/2

k= 0.3465 s-1

Rate of reaction = k[A]

Rate = 0.3465 s-1 × 0.50 mol/L

Rate = 0.17325 moles per liter per second

5 0
3 years ago
Is there a mathematical pattern in the number of
aleksandrvk [35]

Answer:

The orbital shapes are actually representation of (Ψ)2 all over the orbit simplified ... ψnlml(r,θ,ϕ)=Rnl(r)Ymll(θ,ϕ) , ... and thus it is directly linked to the angular and radial nodes. ... for different quantum values(which can be assigned to different orbitals are ) .... The two types of nodes are angular and radial.

Explanation:

hope it helps

4 0
3 years ago
What is 2n2 formula? ​
allsm [11]

Answer:The distribution of electrons in an atom is called as Electronic Configuration. Formula 2n2 helps in the determination of the maximum number of electrons present in an orbit, here n= orbit number.

Explanation:

5 0
3 years ago
What will happen to an object
quester [9]
If an object has a higher density than the fluid it is in (fluid can mean liquid or gas), it will sink. If it has a lower density, it will float. Density is determined by an object's mass and volume. If two objects take up the same volume, but have one has more mass, then it also has a higher density.
3 0
3 years ago
Read 2 more answers
A 6.50x10^-5 m solution of potassium permanganate has a percent transmittance of 27.3% when measured in a 1.15 cm cell at a wave
mihalych1998 [28]
For this problem, we use the Beer Lambert's Law. Its usual equation is:

A = ∈LC
where
A is the absorbance
∈ is the molar absorptivity
L is the path length
C is the concentration of the sample solution

As you notice, we only have to find the absorbance. But since we are not given with the molar absorptivity, we will have to use the modified equation that relates % transmittance to absorbance:

A = 2 - log(%T)
A = 2 - log(27.3)
A = 0.5638
7 0
3 years ago
Other questions:
  • How much energy is required to convert 15.0 g of ice at −106 °C to water vapor at 125 °C? Specific heats are 2.09 J/g K for both
    7·1 answer
  • Can someone please do this for me
    14·1 answer
  • Will give BRAINLIEST!!! Will give BRAINLIEST
    12·1 answer
  • What is the approximate temperature of the descending air at an elevation of 1,600 meters?
    9·1 answer
  • If 3.64g of sand is separated from 5.25g of a mixture of salt and sand what is the percentage of sand in the sample
    15·1 answer
  • -
    11·1 answer
  • Choose all the answers that apply.
    8·2 answers
  • Global climate change is
    13·1 answer
  • If one jellybean weighs 0.350g how many jelly beans are in 504g of jellybeans?
    5·1 answer
  • What is NOT true about white light?
    6·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!