Belajar Java SE

Belajar Java SE

Share

Fan Page ini berisi tentang postingan program (java SE) dan telah bergabung dengan http://www.medi Belajar Java SE (Standar Edition)

14/04/2020

Halo sobat Belajar Java SE, nantikan video-video tutorial kita di channel youtube ya, sukses selalu untuk kita semua

20/12/2014

import java.util.Scanner;

public class LinkedList {

public static void main(String[] args) {
Scanner input = new Scanner(System.in);
proses diproses = new proses();
int inputan;
System.out.print("Masukkan Banyak Node = ");
inputan = input.nextInt();
for(int i=0;i

Photos 05/03/2014

# Membuat GIS Pada Java ();

07/12/2013

# Membuat Switch Case pada Java (coding oleh Ade Kurniawan, M. Rosyid, Deny, Rokhaini Kodariyah).

import java.io.*;
import java.util.Scanner;
public class Menustore
{
public static void main(String []args)
{
int menu,harga=0,stok=0,jm=0,jb=0,total,keuntungan,stok2,hargaawal=0;
Scanner input=new Scanner(System.in);
do
{
System.out.println("Option Menu");
System.out.println("1. Menu input akind of things");
System.out.println("2. Updating the datas of things");
System.out.println("3. Marketing");
System.out.println("4. The Report of Marketing");
System.out.println("0. Close\n");

System.out.print("Please Choose =");
menu=input.nextInt();

switch (menu)
{
case 1: System.out.println("Menu input akind of things :");
System.out.println("1. Coca Cola = Rp. 7500");
System.out.println(" Stock = 15");
System.out.println("2. Sprite = Rp. 3500");
System.out.println(" Stock = 20");
System.out.println("3. Fanta = Rp. 3000");
System.out.println(" Stock = 25");
break;
case 2: System.out.println("2. Updating the datas of things");
break;
case 3: System.out.println("3. Marketing");
System.out.println("1. Coca Cola = Rp. 8000");
System.out.println("2. Sprite = Rp. 4000");
System.out.println("3. Fanta = Rp. 3500\n");
System.out.print("Jenis Minuman = ");
jm=input.nextInt();
if(jm==1)
{
System.out.println("1. Coca Cola = Rp. 8000");
System.out.print("Jumlah Beli =");
jb=input.nextInt();
stok=15;
hargaawal=7500;
harga=8000;
total=harga*jb;
System.out.println("Total = Rp."+total);
}
else if(jm==2)
{
System.out.println("2. Sprite = Rp. 4000");
System.out.print("Jumlah Beli =");
jb=input.nextInt();
hargaawal=3500;
harga=4000;
stok=20;
total=harga*jb;
System.out.println("Total = Rp."+total);
}
else if(jm==3)
{
System.out.println("3. Fanta = Rp. 3500\n");
System.out.print("Jumlah Beli =");
jb=input.nextInt();
hargaawal=3000;
harga=3500;
stok=25;
total=harga*jb;
System.out.println("Total uang yang anda bayar = Rp."+total);
}
else
{
System.out.println("Maaf Menu Tidak Terdaftar");
}

break;
case 4: System.out.println("4. The Report of Marketing");
System.out.println("Nama Barang ="+jm);
System.out.println("Harga ="+harga);
System.out.println("Jumlah Beli ="+jb);
keuntungan=harga-hargaawal*jb;
stok2=stok-jb;
System.out.println("Keuntungan ="+keuntungan);
System.out.println("Sisa Stok ="+stok2);
break;
case 0: System.exit(0);
break;
default: System.out.println("I am sorry your chosing");
break;
}
}
while(menu!=0);

}
}

Want your business to be the top-listed Computer & Electronics Service in Bandar?
Click here to claim your Sponsored Listing.

Telephone

Address

Bandar
Bandar