Advertisement
Mashudi

InputPelajar1

Mar 11th, 2016
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.98 KB | None | 0 0
  1. /*
  2.  * To change this license header, choose License Headers in Project Properties.
  3.  * To change this template file, choose Tools | Templates
  4.  * and open the template in the editor.
  5.  */
  6.  
  7. /**
  8.  *
  9.  * @author sudonym
  10.  */
  11. public class InputPelajar1 {
  12.     public static void main(String[] args){
  13.         Pelajar p = new Pelajar();
  14.        
  15.         p.setNip("050123");
  16.         p.setNama("Budiono");
  17.         p.setNilaiUjian1(55.9);
  18.         p.setNilaiUjian2(65.8);
  19.         p.setNilaiTugas(72);
  20.        
  21.         System.out.println("Data Pelajar : ");
  22.         System.out.println("NIP : " + p.getNip());
  23.         System.out.println("Nama : " + p.getNama());
  24.         System.out.println("N.Ujian 1 : " + p.getNilaiUjian1());
  25.         System.out.println("N.Ujian 2 : " + p.getNilaiUjian2());
  26.         System.out.println("N.Tugas : " + p.getNilaiTugas());
  27.         System.out.println("N.Rata2 Ujian : " + p.nilaiRata2());
  28.         System.out.println("N.Akhir : " + p.nilaiAkhir());
  29.     }
  30.    
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement