ranoraa

Untitled

Oct 24th, 2019
245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. /**
  2. * @author Chintya Prema Dewi dan Aaron Astonvilla
  3. * @version 001
  4. */
  5.  
  6. import java.util.Scanner;
  7. public class olshop
  8. {
  9. private int kodePembayaran;
  10. private int nominal;
  11. Scanner scan = new Scanner(System.in);
  12.  
  13. public void checkout()
  14. {
  15. System.out.println("Masukkan Kode Pembayaran :");
  16. kodePembayaran = scan.nextInt();
  17. System.out.println("\n");
  18. System.out.println("Masukkan Nominal :");
  19. nominal = scan.nextInt();
  20. Receipt();
  21. }
  22.  
  23. public void Receipt()
  24. {
  25. System.out.println("\n");
  26. System.out.println("I-Kios");
  27. System.out.println("PEMBAYARAN ONLINE SHOP");
  28. System.out.println("Kode Pesanan : " + kodePembayaran);
  29. System.out.println("Nominal : " + nominal);
  30. System.out.println("\n");
  31. }
  32. }
Advertisement
Add Comment
Please, Sign In to add comment