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
Calculate the boiling point (in degrees C) of a solution made by dissolving 7 g of naphthalene {C10H8} in 14.4 g of benzene. The
never [62]

Answer:

The boiling point = 89.69 °C

Explanation:

Step 1: Data given

Mass of naphthalane = 7.0 grams

Mass of benzene = 14.4 grams

The Kbp of the solvent = 2.53 K/m

The normal boiling point is 80.1°C

Naphthalene, C10H8 , is a non-electrolyte, which means that the van't Hoff factor for this solution will be 1

Step 2: Calculate moles naphthalene

Moles naphthalene = mass / molar mass

Moles naphthalene = 7.0 grams / 128.17 g/mol

Moles naphthalene = 0.0546 moles

Step 3: Calculate molality

Molality = moles naphthalene / mass water

Molality = 0.0546 moles / 0.0144 kg

Molality = 3.79 molal

Step 4:

ΔT = i*Kb*m

ΔT = 1*2.53 K/m * 3.79 molal

ΔT = 9.59 °C

The boiling point = 80.1 °C + 9.59 °C  = 89.69 °C

3 0
3 years ago
If elements were combined by shaking would they have new properties
mihalych1998 [28]

Answer: Yes because that's when they form a compound

3 0
4 years ago
Choose all the answers that apply.
Minchanka [31]

Answer:

All of the above. The CV system transports blood and plasma the do all 4.

7 0
3 years ago
A(n) ____________ is a push or a pull.<br> newton<br> acceleration<br> force<br> momentum
Sindrei [870]
A force is a push or a pull :)
5 0
3 years ago
Read 2 more answers
Which of the following is the best explanation for the trend in the graph?
morpeh [17]

Answer:

it is the only one going up

Explanation:

3 0
3 years ago
Other questions:
  • The key on a pie chart represents...
    10·2 answers
  • Which product(s) would be obtained by the dehydration of 2-heptanol? of 2-methyl-l-cyclohexanol?
    12·1 answer
  • The state of matter with a specific volume but no definite shape is the ______. state
    8·2 answers
  • How many total orbitals are within the 2s and 2p sublevels of the second<br> energy level?
    13·2 answers
  • Complete and balance the molecular equation, including phases, for the reaction of aqueous sodium sulfate, Na2SO4, and aqueous b
    13·2 answers
  • Which of these statements correctly describes the use of formal charge in choosing between possible Lewis structures to describe
    10·1 answer
  • __ P4(s) + __ O2(g) → __ P4O10(s) Now we will balance O. How many O2 molecules are needed to form one P4O10 molecule?
    13·1 answer
  • 4) Calculate the energy of a quantum of radiant energy with a frequency of 3.00 x 1013 1/s.
    14·2 answers
  • WILL BE MARKED BRAINLIEST IF U ANSWER CORRECT
    9·2 answers
  • What did Dalton compare atoms to? <br> A. Wood<br> B. Jacks<br> C. Marbles<br> D. Leaves
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!