import java.io.*; import java.util.*; import java.lang.Math; /** Pisemka - program "Analyze" * Copylefted by: Harvie 2oo9 ( http://blog.harvie.cz/ ) * @author Thomas Harvie Mudrunka (mudruto1) * @version 1.0 */ /* Priklad: Zadavej posloupnost ukoncenou zapornym cislem: 1 2 3 4 5 -1 Byla zadana nasledujici rada: 1.0; 2.0; 3.0; 4.0; 5.0; minimum = 1.0 maximum = 5.0 Cisla delitelna 3.0: 3.0; prumer = 3,00 Prvocisla: 2.0; 3.0; 5.0; */ class analyzator { private double[] seq = new double[101]; private Scanner sc = new Scanner(System.in); public boolean readSeq() { System.out.println("Zadavej posloupnost ukoncenou zapornym cislem:"); int i;; for(i=0;i max) max = seq[i]; } System.out.println("minimum = "+min); System.out.println("maximum = "+max); } public void vypisDelitelne(double a) { System.out.println("Cisla delitelna "+a+":"); int i; for(i=0;i