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.
- */
- /**
- *
- * @author sudonym
- */
- public class InputPelajar1 {
- public static void main(String[] args){
- Pelajar p = new Pelajar();
- p.setNip("050123");
- p.setNama("Budiono");
- p.setNilaiUjian1(55.9);
- p.setNilaiUjian2(65.8);
- p.setNilaiTugas(72);
- 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 : " + p.nilaiAkhir());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement