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
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: 57Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started