Question: Java please, as simple as possible, the origional code has been provided above thank you. The range of a set of numbers is the difference


Java please, as simple as possible, the origional code has been provided above thank you.
The range of a set of numbers is the difference between the highest and the lowest values in the set. E.g. The range number of the st 55, 64, 76, 82, 97 is 97-55 or 42 You will be given several integer variables. First will be an integer that represents the size of the data set to follow, followed by the data set itself. You will compute the range of this data set. Write the body of the program. Function Details Input The program reads in the following: an integer representing the size of the data set to follow (we will call this n) n integers that make up the data set, to be read into an array Processing Based the data set, you will compute the range. Output Output the integer) range values as "Range: range' where range represents the calculated range value. The text must be terminated by a new-line character. Sample Input/output: Sample Input Sample Output Sample Input/output: Sample Input Sample Output 3 1 1 1 Range: 0 4 1 1 2 2 Range: 1 37 2 5 Range: 5 6 2 1 5 4 7 5 Range: 6 POD.Java** New 1- import java.util.*; 3. public class POD { public static void main(String[] args) { //Instantiate new scanner to read from the console. Scanner in - new Scanner(System.in); //PLEASE BEGIN YOUR WORK HERE //PLEASE END YOUR WORK HERE System.out.print("END OF OUTPUT"); 18 }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
