The document describes Java classes for calculating statistics. The Statistik class contains an array of data and methods to calculate the mean, convert values to 0/1 based on the mean, and print the data and results. The Tugas class contains a method to calculate the mean of an array using Statistik. The NilaiAkhir class contains a method to calculate a final grade by averaging exam scores and other values using Statistik.
The document describes Java classes for calculating statistics. The Statistik class contains an array of data and methods to calculate the mean, convert values to 0/1 based on the mean, and print the data and results. The Tugas class contains a method to calculate the mean of an array using Statistik. The NilaiAkhir class contains a method to calculate a final grade by averaging exam scores and other values using Statistik.
The document describes Java classes for calculating statistics. The Statistik class contains an array of data and methods to calculate the mean, convert values to 0/1 based on the mean, and print the data and results. The Tugas class contains a method to calculate the mean of an array using Statistik. The NilaiAkhir class contains a method to calculate a final grade by averaging exam scores and other values using Statistik.
* * @author (your name) * @version (a version number or a date) */ public class Statistik { double mean; //private double mean; double[] data=new double[5]; //private double[] data=new double[5];
sekarang kita buat program untuk menghitung nilai rata-rata tugas.
/** * Write a description of class Tugas here. * * @author (your name) * @version (a version number or a date) */ public class Tugas { public static void main(String args[]) { }
public double nilai_tugas(double[] data) { Statistik s=new Statistik(); s.ubahData(data); s.hitungMean();
return s.mean; //return s.getMean(); } }
lalu kita buat class untuk menghitung nilai akhir.
/** * Write a description of class NilaiAkhir here. * * @author (your name) * @version (a version number or a date) */ public class NilaiAkhir { public double nAkhir(double[] data,int uts,int uas,int kuis,int absen) { Tugas t=new Tugas(); Statistik s=new Statistik();
Full Chapter Drones To Go A Crash Course For Scientists and Makers 1St Edition Julio Alberto Mendoza Victor Javier Gonzalez Carlos Fernando Aguilar Leonardo Fonseca PDF