Posts

Program Pembelian Queue

Image
 LATIHAN MANDIRI QUEUE Nama : Rayhan Qalby Ramadhan NPM : 21082010008 - Tampilan Program - Tampilan Output - Source Code          cObject      package LatihanQueue;      public class cObject {     String nama;     String [][] pembelian = new String [5][5];     int total;     int antrian;     cObject next,prev;          cObject(String a,String [][] b,int c,int d){         nama=a;pembelian=b;total=c;antrian=d;         System.out.println("^Pesanan anda sedang diproses^");         System.out.println("Total Pembelian Anda : "+total);          }      }      cQueue      package LatihanQueue;      public class cQueue {     cObject front,rear;     int jumlah;          cQueue(...

Program Class Container

Image
 CONTAINER Nama : Rayhan Qalby Ramadhan NPM : 21082010008 - Tampilan Program - Tampilan Output - Source Code : *Class AppWarung package pkgWarung31; //Budi membeli  sate dan soto //class: pembeli, makanan, pembelian(nota/kwitansi) import java.util.Scanner; public class appWarung {     public static void main(String[] args) {         Scanner sc = new Scanner(System.in);         int pilih=0, pilih2=0;                  cPembeli pbl = new cPembeli("");         cMakanan menu[] = new cMakanan[5];         menu[0]=new cMakanan("Sate",15000);         menu[1]=new cMakanan("Soto",12000);         menu[2]=new cMakanan("Gule",20000);         menu[3]=new cMakanan("Bakso",10000);         menu[4]=new cMakanan("Pecel",9000);         do{        ...

STACK PALINDROME

Image
PALINDROME Nama: Rayhan Qalby Ramadhan NPM : 21082010008 - Tampilan NetBeans   - Tampilan Output Palindrome - Tampilan Output Bukan Palindrome SOURCE CODE: Class AppPalindrome : package pkgStackPalindrome; import java.util.Scanner; public class appPalindrome {     public static void main(String[] args) {         Scanner sc = new Scanner(System.in);         cStackPalindrome stack = new cStackPalindrome();         int pilih = 0;                  do{             System.out.println("\n==============================================");             System.out.println("\t\t  PALINDROME\n" +"\t\tMari Kita Coba!"                     + "\n==============================================");             System.out.println("1. Cek Palindrome"...

Program Aplikasi Warung Sederhana Menggunakan Method

Image
Nama : Rayhan Qalby Ramadhan NPM : 21082010008 Tampilan Program : Source Code :  package subprogram; import java.util.Scanner; public class AppWarung {     static int hitungHarga(int hargaSatuan, int jumlah) {         int harga = hargaSatuan * jumlah;         return harga;     }     static String[][] sort(String[] menu, int[] harga) {         String[][] hasilUrutan = new String[10][2];         for (int i = 0; i < menu.length; i++) {             for (int j = 0; j < menu.length - 1; j++) {                 if (menu[j].compareToIgnoreCase(menu[j + 1]) > 0) {                     String t = menu[j];                     menu[j] = menu[j + 1];                   ...