This is default featured slide 1 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 2 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 3 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 4 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 5 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

Kamis, 27 Oktober 2016

Tugas UTS Mata kuliah Algoritma Dan Pemograman

Nama : Muhammad Muslim
Nim : 161011700029
Ruangan : 603
Kelas : 01SIFE001
Waktu Kuliah : Reg C
Dosen : Agus Suharto


1. Kasus :

Pada tahun baru konter hp celluler memberikan promosi berupa bonus  sebesar Rp.30000,jika setiap pembelian hp dengan harga di atas Rp.1000000, jika setiap pembelian hp dengan harga di atas Rp.800000,maka mendapatkan Bonus Rp.100.000. ,


2. SCREEN SHOOT : -Source Code
                                 -Hasil run
                                 -Flowchart


-Source Code  :





 -Hasil run : 


-FlowChart :





3. SOURCE CODE :

import java.util.Scanner;

public class tugas {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        Scanner input=new Scanner(System.in);
        String Bonus;
        System.out.print ("harga handpone1=");
        int Harga1=input.nextInt();
        System.out.print("harga hanpone2=");
        int Harga2=input.nextInt();
        int Hasil=Harga1+Harga2;
        if (Hasil>=1000000)
        {Bonus="Selamat Anda Mendapatkan Paket '1' ";}
        else if (Hasil>=800000)
        {Bonus ="Selamat Anda Mendapatkan Paket '2'";}
        else {Bonus="";}
    
        System.out.println("Total harga handpone="+Hasil);
        System.out.println(""+Bonus);
       
        System.out.print("Pilih Paket=");
        int Paket=input.nextInt();
        switch (Paket){
            case 1:
                System.out.println("Anda mendapatkan Bonus Rp.300.00,-");
                break;
                
            case 2:
                System.out.println("Anda mendapatkan Bonus Rp.100.00,-");
                break;
                
            default:
                
            
        
        }
   }
    
}

Rabu, 12 Oktober 2016

Pemograman Dan algoritma

Nama : Muhammad Muslim
Nim   :161011700029
Kelas :603
Dosen :Agus Suharto

Judul Kasus :Diskon Belanja

1. Penjelasan :  Pada saat lebaran,Bengkel sepeda motor memberikan Bonus Rp.500.000, Untuk setiap Pembeli yg membeli suku cadang dengan harga Di atas Rp.1.000.000 ,dan jika harga Di bawah Rp.1000000 maka tidak mendapatkan bonus.
Variable= Bonus,H1,H2,Hasil


2. Flowchart : 




3. Source Code: 



import java.util.Scanner;
public class sebuah_bkl {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        Scanner masukan=new Scanner(System.in);
        String Bonus;
        System.out.print("Harga Suku Cadang1=");
        int H1=masukan.nextInt();
       
        System.out.print("Harga Suku Cadang2=");
        int H2=masukan.nextInt();
       
        int Hasil=H1+H2;
         if (Hasil>=1000000)
            
         {Bonus="Anda mendapatkan Bonus Rp.500.000";}
         else if (Hasil<=1000000)
         {Bonus="Anda Tidak mendapatkan bonus Rp.0 ";} 
         else{Bonus="";}
         System.out.println("Total Belanja ="+Hasil);
         System.out.println(""+Bonus);
        
    }
   
  }