Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

What are the stages of project management? Write it in items.

Answered: 1 week ago

Question

why do consumers often fail to seek out higher yields on deposits ?

Answered: 1 week ago

Question

How could assessment be used in an employee development program?

Answered: 1 week ago