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
A sample of Ar gas occupies a volume of 1.2 L at 125 degrees * C and a pressure of 10 atm. Determine the temperature , in degree
vekshin1

Answer:

58.64

Explanation:  You want to use the combined gas law equation (P1*V1)/(n1*T1)=(P2*V2)/(n2*T2). So first cross out what remains constant, so pressure and I assume moles (since it was not mentioned as a change). You want to change the temperature to Kelvin (always) to do work, then you can solve algebraically for the answer! Once you have your answer change it to Celsius since that's what you were asked for.

Hope this helped!

6 0
3 years ago
What will happen if we burn carbon monoxide In a closed room??
Marianna [84]

Answer:

the carbon monoxide will release blue fumes

7 0
3 years ago
How can you show the conservation of mass when making a physical mixture?
Yuki888 [10]

Answer:

A. Show that the total of the masses of the starting substances equals the mass of the mixture.

Explanation:

Law of conservation of mass:

According to the law of conservation mass, mass can neither be created nor destroyed in a chemical equation.

This law was given by French chemist  Antoine Lavoisier in 1789. According to this law mass of reactant and mass of product must be equal, because masses are not created or destroyed in a chemical reaction.

For example:

In given photosynthesis reaction:

6CO₂ + 6H₂O + energy → C₆H₁₂O₆ + 6O₂

there are six carbon atoms, eighteen oxygen atoms and twelve hydrogen atoms on the both side of equation so this reaction followed the law of conservation of mass.

In a similar way if we have mixture of sugar and sand the total weight of mixture is equal to the weight of reactants.

sand + sugar + water    → mixture

     10g+5g+20 g           =   35 g

7 0
3 years ago
_____________ are solvents made from natural sources such as pine and citrus oils.
MA_775_DIABLO [31]

Answer:

Terpene

Explanation:

They generally have strong characteristic odours. Specific Terpenes used in cleaning are a-pinene, d-limonene, and turpentine, which is a mixture of terpenes.

They are organic solvents.

7 0
3 years ago
Read 2 more answers
Identify the oxidation number of the highlighted carbon atoms in each of the molecules.
Kryger [21]

Answer:

A) Oxidation state of carbon is +2

B) Oxidation state of carbon is 0

Explanation:

In the first question  , the compound is propanone.

While assigning oxidation states ,

  • <em>We must see to that , </em><em>the electrons in the bond moves towards the most electronegative atom.</em>
  • <em>If they are equally electronegative , </em><em>each of them gets 0 oxidation state respectively.</em>
  • <em>And if there is one bond , </em><em>the oxidation state obtained by the electronegative atom is -1 and the other is +1.</em>
  • The order of electronegativity is as follows :

O>C>H

  • <em>Thus O always gets -1 and H always gets +1 in these two compounds.</em>
  • <em>The carbon - carbon bond will give 0 oxidation state.</em>

<em>A) According to these rules the Oxidation state of carbon is +2</em>

<em>B) According to these rules the Oxidation state of carbon is 0</em>

  • <u>Diagram attached below </u>
  • The direction of the arrows in the diagram represents the movement of electron

3 0
3 years ago
Other questions:
  • Consider the reaction:
    10·1 answer
  • Which statement about the self-ionization of water is correct?
    7·1 answer
  • What would be another property that we Earthlings could use to classify stars?
    15·1 answer
  • Should the line of best- fit travel through the origin of the graph ? Explain your reasoning
    11·1 answer
  • Which statement applies to electronegativity?
    12·1 answer
  • Which subatomic particle will you add or remove from an atom to create a new element
    8·1 answer
  • Please help!!!!!! Name 3 differences between vascular and non vascular plants
    11·1 answer
  • If you lower the energy stored in a chemical bond this is an example of?
    9·1 answer
  • A metal is found that has a mass of 27g and will displace 6mL of water. Calculate its density and identify the metal.
    13·1 answer
  • If the adoms dont work are they dead
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!