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 answer for #11
miskamm [114]
Lake water is favorable to Prokaryotic cell.
7 0
3 years ago
1. For CCl4, upload a photo including the following: (1) work arriving at total # valence electrons
forsale [732]

Work arriving at total valence electrons are 24

The valence electron is an electron in the outer shell associated with an atom, and that can participate in the formation of a chemical bond

For a main-group element, a valence electron can exist only in the outermost electron shell; for a transition metal, a valence electron can also be in an inner shell.

Lewis structures, also known as Lewis dot formulas, Lewis dot structures, electron dot structures, or Lewis electron dot structures (LEDS), are diagrams that show the bonding between atoms of a molecule, as well as the lone pairs of electrons that may exist in the molecule.

Calculating the work arrival at total valence electrons

We know 1 bond contains

2 valence electrons

Here CCl4 contains 4 bonds that is 8 valence electrons

Therefore ,

Total valence electrons are 32

Now valence electrons remain after bond formation =

32 - 8

=24 valence electrons

A molecular model is a physical model of an atomistic system that represents molecules and their processes

Molecular image and lewis hand drawn structure is as shown below

Learn more about lewis structure here

brainly.com/question/6224949

#SPJ10

3 0
2 years ago
What changes in space result from the death of massive stars?
lana [24]

Whenever the fuel is being used up, a star explodes and the energy leakage from a star's core ceases.

Explanation:

The dying star expands in the "Red Giant," before even the inevitable collapse starts, due to nuclear reactions just outside of the core.

It becomes a white dwarf star when the star has almost the same density as the Sun. If it's much larger, a supernova explosion could take place and leave a neutron star away. However, if it is very large–at least three times the Sun's mass–the crumbling core of the star, nothing will ever stop it from crumbling. The star is imploding into a black hole, an endless gravitational loop in space.

6 0
3 years ago
Examine the false statement.
Fynjy0 [20]
The alkali earth metals have two valence electrons.
Hope this helps! :)
5 0
4 years ago
Read 2 more answers
Which metal ion was green when placed in the fire?
Debora [2.8K]

Answer:

Barium Ba2+

Explanation:

Potassium lilac

Calcium orange red

Copeer blue green

3 0
3 years ago
Other questions:
  • What is the ph of a buffer consisting of 0.200 m hc2h3o2 and 0.200 m kc2h3o2? the k a for hc2h3o2 is 1.8×10−5. view available hi
    7·1 answer
  • If an atom has 17 protons and 18 neutrons, what is the charge of the atom's nucleus?​
    15·1 answer
  • A model of an atom is shown below. Which element is represented by this model of an atom?
    14·2 answers
  • A) accelerated upward. B) slowed and then stopped. C) moved at a constant velocity. D) increased its speed rapidly.
    14·1 answer
  • A force of 20 N acts upon 5 kg block caculate the accerleration of the object
    12·1 answer
  • PLEASE HELP!!! 15 POINTS!!
    15·1 answer
  • A ____________ is a physical combination of things that can be separated. mixture compound
    8·1 answer
  • Round your answer to the correct number of significant figures or decimal places: 0.005-0.0007=
    8·1 answer
  • The boiling point of ethanol is 78.4 °C, and the enthalpy change for the conversion of liquid to vapor is ΔHvap = 38.56 kJ/mol.
    8·1 answer
  • The bobsled is an event in the winter Olympics. In this event, each sled and its riders speed down an icy track. Which factor(s)
    13·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!