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
Story that ends in i have never found such a kind person ever since ​
zmey [24]

Answer:

I was traveling on a train where I fell asleep. someone stole my luggage in which I had money and other essentials. when the ticket checker arrived a lady paid my fine. she helped me a lot. when I told her about being robbed she helped me and took me to the police station and I found my bag. I insisted she take the money she paid for my fine but she said that in return you too help someone."I have never found such a kind person ever since.".....

Explanation: I think this is what you are looking for. Hope this helps.

7 0
2 years ago
Determine the chemical formulas for the two compounds below. (Carbon, Hydrogen, and Oxygen).
tester [92]
Remember that any intersection of lines is a C, and that the number of hydrogens attached are the necessary to complet the 4 bonds.

1) CH3 - CH (OH) - CH (CH3) -CH3

2) CH3 - O - CH(CH3)-CH2 - CH3

I have used the parenthesis to indicate that the radical inside is in other branch, bonded by a single line -
4 0
3 years ago
The following reaction has been reported in the chemical literature and gives a single organic product in high yield. Write the
Alla [95]

Answer:

Explanation:

The principle applied is the Markovnikoff's rule which states that when hydrogen chloride adds to a double bond, the hydrogen atoms join to the carbon that already has the most hydrogen atoms bonded to it. The rule wa postulated by a russian chemist known as Vladimir Markovnikoff.

In the markovnikoff's rule, there are sveral conditions that must be met, one of them is that no free radicals must be involved.

The reaction and the structure of the product is as shown in the attachment.

8 0
3 years ago
Find the hydroxide ion concentration of a HBr solution with a pH of 4.75
Sunny_sXe [5.5K]
1st find the pOH = 14 - 4.75 = 9.25
then do 10^-9.25 = 5.62x10^-10 OH- concentration
8 0
3 years ago
the elements iron (Fe), copper (Cu), and mercury (Hg) are classified as metals. which physical property of metals do they all sh
koban [17]

Answer:

They are heavy metals.

Explanation:

Heavy metals are generally defined as metals with relatively high densities, atomic weights, or atomic numbers.

6 0
3 years ago
Other questions:
  • Suppose that you drop three objects into a glass of water: a piece of styrofoam, a piece of oak, and a gold ring. Which float, a
    11·1 answer
  • Glass of orange juice contain 0.90 dL of juice. How many milliliters of orange juice is that?
    14·1 answer
  • When atomic orbitals of two nuclei overlap, the mutual attraction between a negatively charged electron pair and the two positiv
    9·1 answer
  • The reduction of iron(III) oxide (Fe203) to pure iron during the first step of steelmaking,
    7·1 answer
  • Which statement about the elements in the periodic table is true?
    15·1 answer
  • 8. Why do we see water droplets on the outer surface of a glass containing ice cold water?
    14·2 answers
  • Is it possible to have more atoms on the product side of a chemical reaction than there are on the reactant side? Explain why or
    13·1 answer
  • C + O2 = CO2
    9·1 answer
  • Find the total mass in kilograms of a ring that contains a 5.0 x 10 -1 carat diamond and 7.00 grams of gold.
    14·1 answer
  • Giving brain thing.
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!