Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
- package newpackage;
- /**
- *
- * @author sudonym
- */
- public class InputPelajar {
- public static void main(String[] args){
- Pelajar p = new Pelajar();
- p.setData("Dian P","050122");
- p.setNilai(65,53.7,62.5);
- System.out.println("Data Pelajar : ");
- System.out.println("NIP : " + p.getNip());
- System.out.println("Nama : " + p.getNama());
- System.out.println("N.Ujian 1 : " + p.getNilaiUjian1());
- System.out.println("N.Ujian 2 : " + p.getNilaiUjian2());
- System.out.println("N.Tugas : " + p.getNilaiTugas());
- System.out.println("N.Rata2 Ujian : " + p.nilaiRata2());
- System.out.println("N.Akhir : " + String.format("%.2f",p.nilaiAkhir()));
- System.out.println("Status : " + p.isLulus());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement