ASSASSIN'S CREED 4 : BLACK FLAG

Assassin’s Creed IV Black Flag begins in 1715, when pirates established a lawless republic in the Caribbean and ruled the land and seas. These outlaws paralyzed navies, halted international trade, and plundered vast fortunes. They threatened the power structures that ruled Europe, inspired the imaginations of millions, and left a legacy that still endures.

ART AND DESIGN #1

My thought and creativity is being represented on this image.

THE HOBBIT 2 - THE DESOLATION OF SMAUG

The dwarves, along with Bilbo Baggins and Gandalf the Grey, continue their quest to reclaim Erebor, their homeland, from Smaug. Bilbo Baggins is in possession of a mysterious and magical ring.

ART AND DESIGN #2

My another art.. :D

WINDOWS IX CONCEPT

It is a development from previous edition of Windows

MILEY CYRUS - WRECKING BALL

We clawed, we chained our hearts in vain We jumped never asking why We kissed, I fell under your spell.

MY BLOG FANPAGE

If you like my blog, join The Fanpage in Facebook :D

SNSD COMEBACK 2014

Already got your own copy of Girls' Generation's 'I got a Boy' album?...

Wednesday, 12 September 2012

Java Programming - #4 Menghitung Luas dan Volume Bangun

Buat yang suka nyari luas dan volume bangunan
dan males ngitung sendiri

package menghitung;
import java.util.Scanner;
import java.io.*;

public class Menghitung {
public static int tipbid;
public static int jenbid;
public static double a;
public static double b;
public static double c;
public static double res;
   
    public Menghitung(int jenis_bidang, double ukuran1, double ukuran2, double ukuran3){
        jenbid = jenis_bidang;
        a = ukuran1;
        b = ukuran2;
        c = ukuran3;
    }
   
    public void Luas(){
        if (jenbid == 1)
            res = a*b/2;
        if (jenbid == 2)
            res = a*a * 3.14;
        if (jenbid == 3)
            res = a*a;
        if (jenbid == 4)
            res = a*b;
        else
            res = a*b/2;
        System.out.println("LUASNYA ADALAH : " +res);
    }

    public void Vol(){
        if (jenbid == 1)
            res = a*a*a;
        if (jenbid == 2)
            res = a*b*c;
        if (jenbid == 3)
            res = a*a * 3.14 * b;
        if (jenbid == 4)
            res = a*b/2*c/3;
        else
            res = a*b*c/3;
        System.out.println("VOLUMENYA ADALAH : " +res);
    }
    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        System.out.println("-MENGHITUNG LUAS & VOLUME BANGUN-");
        System.out.println("1. BANGUN DATAR (EX: PERSEGI, SEGITIGA)");
        System.out.println("2. BANGUN RUANG (EX: KUBUS, LIMAS)");
        System.out.print("PILIH TIPE BANGUN : ");
        Scanner tipe_bidang = new Scanner (System.in);
        tipbid = tipe_bidang.nextInt();
        if (tipbid == 1){
        System.out.println("1. SEGITIGA");
        System.out.println("2. LINGKARAN");
        System.out.println("3. PERSEGI");
        System.out.println("4. PERSEGI PANJANG");
        System.out.println("5. BELAH KETUPAT");
        System.out.print("PILIH JENIS BIDANG : ");
        Scanner jenis_bidang = new Scanner (System.in);
        jenbid = jenis_bidang.nextInt();
        System.out.println();
            if (jenbid == 1){
            System.out.print("MASUKAN PANJANG ALAS : ");
            Scanner panjang_alas = new Scanner (System.in);
            a = panjang_alas.nextDouble();
            System.out.println();
            System.out.print("MASUKAN TINGGI : ");
            Scanner tinggi_segitiga = new Scanner (System.in);
            b = tinggi_segitiga.nextDouble();
            System.out.println();
            Menghitung segitiga = new Menghitung(1, a, b, c);
            segitiga.Luas();
            }
            if (jenbid == 2){
            System.out.println("MASUKAN PANJANG JARI2 : ");
            Scanner panjang_jari2 = new Scanner (System.in);
            a = panjang_jari2.nextDouble();
            Menghitung lingkaran = new Menghitung(2, a, b, c);
            lingkaran.Luas();
            }
            if (jenbid == 3){
            System.out.print("MASUKAN PANJANG SISI : ");
            Scanner panjang_sisi = new Scanner (System.in);
            a = panjang_sisi.nextDouble();
            System.out.println();
            Menghitung persegi = new Menghitung(3, a, b, c);
            persegi.Luas();
            }
            if (jenbid == 4){
            System.out.print("MASUKAN PANJANG : ");
            Scanner panjang_persegi = new Scanner (System.in);
            a = panjang_persegi.nextDouble();
            System.out.println();
            System.out.print("MASUKAN LEBAR : ");
            Scanner lebar_persegi = new Scanner (System.in);
            b = lebar_persegi.nextDouble();
            System.out.println();
            Menghitung persegi_panjang = new Menghitung(4, a, b, c);
            persegi_panjang.Luas();
            }
            if (jenbid == 5){
            System.out.print("MASUKAN DIAGONAL PERTAMA : ");
            Scanner diagonal1 = new Scanner (System.in);
            a = diagonal1.nextDouble();
            System.out.println();
            System.out.print("MASUKAN DIAGONAL KEDUA : ");
            Scanner diagonal2 = new Scanner (System.in);
            b = diagonal2.nextDouble();
            System.out.println();
            Menghitung ketupat = new Menghitung(5, a, b, c);
            ketupat.Luas();
            }
            else{
            System.out.println("JENIS BIDANG TIDAK ADA DALAM DAFTAR");
            }
        }
       
        if (tipbid == 2){
        System.out.println("1. KUBUS");
        System.out.println("2. BALOK");
        System.out.println("3. TABUNG");
        System.out.println("4. LIMAS SEGITIGA");
        System.out.println("5. LIMAS SEGIEMPAT");
        System.out.print("PILIH JENIS BIDANG : ");
        Scanner jenis_bidang = new Scanner (System.in);
        jenbid = jenis_bidang.nextInt();
        System.out.println();
            if (jenbid == 1){
            System.out.print("MASUKAN PANJANG SISI : ");
            Scanner sisikubus = new Scanner (System.in);
            a = sisikubus.nextDouble();
            System.out.println();
            Menghitung kubus = new Menghitung(3, a, b, c);
            kubus.Vol();
            }
            if (jenbid == 2){
            System.out.print("MASUKAN PANJANG : ");
            Scanner panjang_balok = new Scanner (System.in);
            a = panjang_balok.nextDouble();
            System.out.println();
            System.out.print("MASUKAN LEBAR : ");
            Scanner lebar_balok = new Scanner (System.in);
            b = lebar_balok.nextDouble();
            System.out.println();
            System.out.print("MASUKAN TINGGI : ");
            Scanner tinggi_balok = new Scanner (System.in);
            c = tinggi_balok.nextDouble();
            System.out.println();
            Menghitung balok = new Menghitung(3, a, b, c);
            balok.Vol();
            }
            if (jenbid == 3){
            System.out.print("MASUKAN PANJANG JARI2 ALAS : ");
            Scanner jari2_alas = new Scanner (System.in);
            a = jari2_alas.nextDouble();
            System.out.println();
            System.out.print("MASUKAN TINGGI : ");
            Scanner tinggi_tabung = new Scanner (System.in);
            b = tinggi_tabung.nextDouble();
            System.out.println();
            Menghitung tabung = new Menghitung(3, a, b, c);
            tabung.Vol();
            }
            if (jenbid == 4){
            System.out.print("MASUKAN PANJANG ALAS SEGITIGA : ");
            Scanner alas_segitiga_limas = new Scanner (System.in);
            a = alas_segitiga_limas.nextDouble();
            System.out.println();
            System.out.print("MASUKAN TINGGI SEGITIGA ALAS : ");
            Scanner tinggi_segitiga_alas = new Scanner (System.in);
            b = tinggi_segitiga_alas.nextDouble();
            System.out.println();
            System.out.print("MASUKAN TINGGI LIMAS : ");
            Scanner tinggi_limas = new Scanner (System.in);
            c = tinggi_limas.nextDouble();
            System.out.println();
            Menghitung limas_segitiga = new Menghitung(3, a, b, c);
            limas_segitiga.Vol();
            }
            if (jenbid == 5){
            System.out.print("MASUKAN PANJANG ALAS SEGIEMPAT : ");
            Scanner panjang_segiempat_limas = new Scanner (System.in);
            a = panjang_segiempat_limas.nextDouble();
            System.out.println();
            System.out.print("MASUKAN LEBAR SEGIEMPAT : ");
            Scanner lebar_segiempat = new Scanner (System.in);
            b = lebar_segiempat.nextDouble();
            System.out.println();
            System.out.print("MASUKAN TINGGI LIMAS : ");
            Scanner tinggi_limas = new Scanner (System.in);
            c = tinggi_limas.nextDouble();
            System.out.println();
            Menghitung limas_segiempat = new Menghitung(3, a, b, c);
            limas_segiempat.Vol();
            }
            else{
            System.out.println("JENIS BIDANG TIDAK ADA DALAM DAFTAR");
            }
        }
        else{
        System.out.println("NOMOR YANG ANDA MASUKAN SALAH");
        }
    }
}

mau program yang udah jadi ? Coba disini

Sebelum menjalankan programnya, anda diharuskan untuk menginstal JRE (offline installer) nya disini

Thursday, 6 September 2012

Java Programming - #3 Kalkulator part 2

Dibandingkan dengan kalkulator sebelumnya, kalkulator ini terbilang lebih baik karena meminta input langsung dari usernya...

Let's start..

import java.util.Scanner;
        class Cal3{
        public static double a1;
        public static double a2;
        public double output;
        public static String op;
       
        public Cal3(double a1, double a2, String op){
        if (op.equals("kali") | op.equals("bagi")| op.equals("tambah") | op.equals("kurang")) {
                if (op.equals("kali"))
                output = a1*a2;
                if (op.equals("bagi"))
                output = a1/a2;
                if (op.equals("tambah"))
                output = a1+a2;
                if (op.equals("kurang"))
                output = a1-a2;
                System.out.println("Hasilnya " +output);
        }
         else
            System.out.println("Maaf, operator yang Anda masukan salah");
        }
       
        public static void main(String args[]){
            System.out.print("Masukan bilangan pertama : ");
            Scanner number1 = new Scanner (System.in);
            a1 = number1.nextDouble();
            System.out.println();
            System.out.print("Masukan bilangan kedua : ");
            Scanner number2 = new Scanner (System.in);
            a2 = number2.nextDouble();
            System.out.println();
            System.out.println("1. kali");
            System.out.println("2. bagi");
            System.out.println("3. tambah");
            System.out.println("4. kurang");
            System.out.println("Ketik operator : ");
            Scanner operation = new Scanner (System.in);
            op = operation.nextLine();
            Cal3 hitung = new Cal3 (a1,a2,op);
        }
        }

Wednesday, 5 September 2012

IELTS CAMBRIDGE 1 2 3 4 5 6 7 8 9


Cambridge Practice Tests for IELTS - All of these books contain exercises being similar with real IELTS Test, providing students with an excellent opportunity to familiarise themselves with IELTS and to practise examination techniques using authentic test material prepared by Cambridge ESOL. Each book contains four complete tests for Academic candidates (with listening audio), plus extra Reading and Writing modules for General Training candidates and audio. Let's learn it by downloading the link below.

Java Programming - #2 Kalkulator Sederhana

Yang ini asli buatan ane, kalo ada kekurangan mohon kritik dan sarannya,
tapi jangan pedas" ya
Hahaha...

package kalkulator;

/**

 *

 */

public class Kalkulator {

    private double a = 0;

    private double b = 0;

    private boolean o;

    private boolean i;

    private String tampil;
 
  /**
     * @param args the command line arguments

     */

    //constructor

    public Kalkulator(int x, int y, boolean operator, boolean operator2){

        a = x;


        b = y;

        o = operator;

        i = operator2;

    }

    //function

    public void mari_hitung(){

        if (o == true & i == true)

            tampil = a+ " x " +b+ " = " +(a*b);

        if (o == true & i == false)

            tampil = a+ " / " +b+ " = " +(a/b);

        if (o == false & i == true)

            tampil = a+ " + " +b+ " = " +(a+b);

        if (o == false & i== false)

            tampil = a+ " - " +b+ " = " +(a-b);

        System.out.println(tampil);

    }

    public static void main(String[] args) {

        // TODO code application logic here

        Kalkulator hitung1 = new Kalkulator(5, 1, true, true);

            hitung1.mari_hitung();

        Kalkulator hitung2 = new Kalkulator(6, 4, false, false);

            hitung2.mari_hitung();

        Kalkulator hitung3 = new Kalkulator(9, 2, true, false);

            hitung3.mari_hitung();

        Kalkulator hitung4 = new Kalkulator(5, 1, false, true);

            hitung4.mari_hitung();
           
    }

}

Java Programming - #1 Hello World

Membuat aplikasi Hello World

public class Helloworld {

    /**
  
     * @param args the command line arguments
  
     */

    public static void main(String[] args) {

        System.out.println("Hello World!!");

        // TODO code application logic here

    }

}

Advertisements

Dukungan berupa donasi dari Anda akan sangat berarti bagi eksistensi dan pengembangan blog ini
Anda dapat memberikannya dengan mengklik iklan banner di samping atau di bawah ini

adf.ly - shorten links and earn money!
2012 2014 3 ACDC add on afilasi age of empires; stronghold; yugioh; nyamuk; xilisoft; video converter; software; game air dingin alejandro alex noerdin alex sumsel Allanis Morisette anak anjing android aneh Animasi anjing antichrist Antivirus aplikasi astronomi avatar ayodance background badai badai matahari bahasa pemrogaman band bangun battlenet bayi BB bbm beladiri belajar beras berita berpikir bijak bijaksana biji bintang bisnis online blackberry blogger Blur bodoh bohong bos bos beras browser C# C++ cambridge capoeira cara cara kerja otak catur CBS cerita cerita; lucu; joko; conditoner cerita; tips; pekerjaan; impian; bu haji; pemuda; motivasi; renungan cewek cheat china chinese paladin coba-coba coldplay concert crack curhat deep freeze dialog diam ditutup dns changer doa dog dota download drama duid dunia ebay ebook efek emulator eng-article Eric Clapton facebook fast food FBI film flu full version funny G3 gambling Game gempa gender gigitan gogamers GOGS gproxy gratis GUI gumiho Guns N Roses hack hacker hacking hadir hahaha handphone hang hari ibu Harry Potter heboh hewan hoki hp html hu ge hujan salju humor hunan tv ibu idm IELTS ielts preparation ikan ilegal imaginasi indah industri info internet ios iphone iseng jahil jantung java jelek jenis jenis makanan John Mayer joke jre jss jsstripler judi jujur justbeenpaid kalkulator karakter karyawati katak kehidupan kemampuan otak kepiting kepribadian kertas kesalahan ketawa kiamat Kim Dotcom kisah kodok komputer korea kriminal kucing Lady Gaga lagu laut lelaki lelang lele lesbian liberty reserve liu shi shi LR luas lucu lugu makan makanan malang malware man and woman manusia mata matahari matematika math megaupload melotot menarik mengatur menghitung menu motivasi mujur musik NBC negara Neobux news ninja saga nonton o2jam OASIS offline opengamers opera OPGS opmin OST palembang pekerjaan; impian; menyenangkan; tips; pelajaran hidup pempek pencuri pengalaman pengganti penyakit perbedaan pria dan wanita perempuan pesan moral phk phone photoshop; cs6; notepad; game; software; fifa; adobe; flash builder; ms office; angry birds; craagle; keygen; serial; dota 2; avast; antivirus; cheat; starcraft II; starcraft 2; converter; program phyton pike plan Point Blank pria profit profitclicking program programming psikologi ptc; iconbux; scam; waspada; pay to click ptc; scam; pay to click pulau pulau hoga Radiohead rahasia raja rambutan real story refreshing rencana renungan revolusi revolusi industri Rihanna romansa sakit sakit jantung satu kata scam scar of sky script sehat sejarah serakah serangan server dota shoutmix situs snsd software solusi song sosialitas sumpit sumsel superstar susah tidur symbian tahun baru Taylor Swift Teknologi tersedak test three tips tips; jaringan; berita; penyakit; sakit; kanker tomcat true story tugas Tuhan tukang cukur tune up tutorial tv tvuplayer U2 uang ucweb unik vampire van halen video volume wanita warcraft III website Weezer wi-fi win xp windows windows xp wisata x-plore xuan yuan sword youtube zynga poker