Please add Algorithm and comments to my program. Thank you public class Great { public static void main(String[] args) throws IOException { BufferedReader input = new BufferedReader(new...



Please add Algorithm and comments to my program. Thank you



public class Great {
public static void main(String[] args) throws IOException {
BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
double numbers[] = new double[10];
System.out.println("Please enter number");
for (int i = 0; i < numbers.length;="" i++)="">
String inputString = input.readLine();
numbers[i] = Double.parseDouble(inputString);
System.out.println("Please enter another number");
}
double greatest = numbers[0];
for (int i = 1; i < numbers.length;="">
if (greatest <>
greatest = numbers[i];
}
}
System.out.println("The greatest number is " + greatest);
}
}



Jun 06, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here