Question: Just provide the coding where it says: //PLEASE PUT YOUR WORK HERE //PLEASE END YOUR WORK HERE The questions are provided before the starting of

Just provide the coding where it says:

//PLEASE PUT YOUR WORK HERE //PLEASE END YOUR WORK HERE

The questions are provided before the starting of the codes as well.

Instructions

You will be given three integers:

??,j and ??.

Compute the the middle value of those integers and output that value.

Write the body of the program called PoD.java

Details

Input

The program reads in three (unordered) integers:

??, ?? and ??.

Processing

Of those integers, determine which falls in the middle when sorted from least to greatest. Output that value.

Output

Output "???????????? ??????????: " followed by the computed middle value. The text must be terminated by a new-line character.

Examples

Just provide the coding where it says: //PLEASE PUT YOUR WORK HERE

CODE:

import java.util.*;

/**

* The following is the only class of the program and contains all

* program code. The program starts running in the main() of this class.

*/

public class PoD {

/**

* Main method that runs when the program is started.

*/

public static void main(String[] args) {

//Instantiate new scanner to read from the console.

Scanner in = new Scanner( System.in );

//Declare & initialize variables

int i = in.nextInt();

int j = in.nextInt();

int k = in.nextInt();

System.out.println(i + " " + j + " " + k);

//PLEASE START YOUR WORK HERE

//PLEASE END YOUR WORK HERE

System.out.print("END OF OUTPUT");

}

}

DON'T PROVIDE WRONG CODE. IT WILL BE FLAGGED.

Examples Sample Input 4 1 3 11 2 14 31 64 72 98 12 57 Sample Output Middle value: 3 Middle value: 11 Middle value: 64 Middle value: 57

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!