Friday, May 20, 2011

OOP - Operasi Logika


Postingan saya kali ini tentang OOP, mata kuliah yang sedang saya ikuti.

Apa itu OOP?? atau dalam Bahasa Indonesia, Pemrograman Berorientasi Objek???
Jujur saja, saya masih sedikit mengerti tentang pengertian OOP, yaitu pemrogrman tentang orientasi objek, dimana pemrograman ini menggunakan bahasa pemrograman Java.


Kali ini saya akan belajar tentang Operasi Logika tentang harga barang dan diskon...
Tidak cukup satu kali untuk membuat program ini, harus dicoba berulang kali..

Langsung saja, pertama kita buat class dengan nama harga

class harga{
  int Quantity;  //jumlah
  int Harga;     //harga
  int Jumlah;    //hasil dari jumlah dikali harga
  int Diskon;    //potongan
  int Bayar;     //jumlah dibagi diskon
 boolean A;
  int C=100000;
}


simpan coding tersebut dengan nama harga.java


selanjutnya buat class dengan nama belanja

public class belanja{
 public static void main(String[]args){
    harga nilai = new harga();
 
    nilai.Quantity = 4;      //jumlah barang
    nilai.Harga = 100000;    //harga tiap barang
    nilai.Jumlah = nilai.Quantity*nilai.Harga;  

if (nilai.Jumlah >= nilai.C){
 
    nilai.A = true;
    nilai.Diskon = nilai.Jumlah *10/100;
}
    nilai.Bayar = nilai.Jumlah-nilai.Diskon;

System.out.println ("Quantity = " +nilai.Quantity);
System.out.println ("Harga Barang = " +nilai.Harga+".0");
System.out.println ("Jumlah = " +nilai.Jumlah+".0");
System.out.println ("Diskon = " +nilai.Diskon+".0");
System.out.println ("Bayar = " +nilai.Bayar+".0");
}}


simpan coding tersebut dengan nama belanja.java


setelah itu compail class harga sehingga menghasilkan file harga.class


lalu compail class belanja sehingga menghasilkan belanja.class




terakhir kita jalankan belanja.java



Sekian..

Terima kasih..


DON'T FORGET TO COMMENT AND FOLLOW. THANK YOU FOR VISIT.. ^_^

Saturday, May 14, 2011

Menonaktifkan Autoplay pada Windows 7


Autoplay/autorun adalah salahsatu fitur windows yang berfungsi untuk membuka file yang berada di media data (CD/DVD, Hardisk Eksternal, Flashdisk, dll) secara otomatis. Ada beberapa kelemahan jika mengaktifkan fitur Autorun Windows ini, yaitu:
  1. Jika CD/DVD, Hardisk Eksternal, Flashdisk mengandung virus maka virus dapat dengan mudah menyerang komputer anda melalui fitur autorun Windows 7
  2. Windows 7 akan mengalokasikan memori untuk fitur autoplay, sehingga bisa menguras memori komputer.
Sebenarnya anda bisa menonaktifkan fitur autorun/autoplay Windows 7. Berikut ini adalah cara untuk menonaktifkan Autoplay Windows 7 :
  1. Pilih Start Menu >> Control Panel

  2. Pilih Hardware and Sound


  3. Pilih Autoplay


  4. Unchecklist "Use Autoplay for all media devices" lalu Save


Jika setting autorun/autoplay berhasil, maka saat memasukkan sebuah CD/DVD ke dalam CD/DVD Drive, CD/DVD tersebut tidak berjalan secara otomatis.
DON'T FORGET TO COMMENT AND FOLLOW. THANK YOU FOR VISIT.. ^_^

Thursday, May 5, 2011

Plants vs Zombie

Plants vs Zombie
Plants vs. Zombies is a tower defense action video game developed and originally published by PopCap Games for Microsoft Windows and Mac OS X. The game involves a homeowner using many varieties of plants to repel an army of zombies. It was first released on May 5, 2009, and made available on Steam on the same day. A version for iOS was released in February 2010, and an HD version for the iPad. An extended Xbox Live Arcade version introducing new gameplay modes and features was released on September 8, 2010. PopCap has released a Nintendo DS version on January 18, 2011, that features content unique to the platform. The PlayStation 3 version was released in February 2011. Furthermore, both the original Windows and Mac version of the game have been re-released with additional content in a Game of the Year version. The game received a positive response from critics, and was nominated for multiple Interactive Achievement Awards, alongside receiving praise for its musical score.

System requirements
Requirements
Windows
Operating systemWindows 7, Windows Vista, Windows XP
CPU1.2 GHz
Memory1 GB
Hard drive space65+MB of free hard drive space
Graphics hardware128 MB of video memory, 16-bit or 32-bit color quality
Sound hardwareDirectX-compatible sound
Mac
Operating systemMac OS X 10.4.11-10.6.x
CPU1.66 GHz+ (dual core)
Memory1 GB
Hard drive space50 MB
Graphics hardware64 MB of video memory, 16-bit or 32-bit color quality
Sound hardwareStandard audio

Gameplay
Plants vs. Zombies sees players placing different types of plants and fungi, each with their own unique offensive or defensive capabilities, across the front garden, a back garden with a swimming pool, and the roof of a house in order to stop a horde of zombies from devouring the brains of the residents. The playing field is divided into a number of horizontal tracks, and in general, although there are exceptions, a zombie will only move towards the player's house along one track, and most plants can only attack or defend against zombies in the track they are planted in. In the game's initial levels, if the zombie reaches the player's house, a one-shot tool (a lawn mower or pool cleaner) can be used to completely wipe out zombies in that track, but the tool will not be restored until the next level. In later levels, players have to purchase upgrades so as to adapt their lawn-mower to new environments like pools or rooftops. Zombies, except in special cases, attempt to devour any plants in their way while heading towards the house.
Plants  vs Zombie Play
The player starts with a limited number of seed packs and seed pack slots that they can use during most levels. New seed packs are gained by completing levels, while the number of slots can be increased through purchases with in-game money. At the start of a level, the player is shown the various types of zombies to expect and given the opportunity to select which seed packs to take into the level. In order to plant a seed, the player must have collected a specific amount of sunlight. Sunlight is generated by plants which provide sunlight at regular intervals, or is automatically generated regularly for the player during daytime. Seed packs also have a short time delay before the same seed can be planted again. Several plants are nocturnal, like mushrooms, having a lower sunlight cost and are ideal for nighttime levels, but will remain asleep during daytime levels unless awoken by a coffee bean. In the "backyard" levels that include a swimming pool, seeds must be planted atop lily pads on water spaces, while on the roof levels, all seeds must be planted in flower pots. The various plant abilities include firing projectiles at zombies, turning zombies against each other, quickly exploding and wiping out an area of zombies, and slowing down zombies. Certain plants are highly effective against specific types of zombies, such as a "Magnet-shroom" that can remove metallic items from a zombie, such as helmets and ladders.
The zombies also come in a number of types that have different attributes, in particular, speed, damage tolerance, and abilities. As the player progresses in the game, the zombies will include those wearing makeshift armour, those that are able to jump or fly over plants, and even a dancing zombie that is able to summon other zombies from the ground. In each level, zombies will approach the house randomly except at special points where the player will be inundated with a huge wave of zombies; a meter on screen shows an approximate timeline for the level so the player can prepare for these waves.

Download Plants vs Zombie >> Plants vs Zombie.rar (26,3MB)


DON'T FORGET TO COMMENT AND FOLLOW. THANK YOU FOR VISIT.. ^_^

Wednesday, May 4, 2011

Halo: Combat Evolved


Halo: Combat Evolved (frequently referred to as simply Halo) is a first-person shooter video game developed by Bungie and published by Microsoft Game Studios. The first game of the Halo franchise, it was released on November 15, 2001 as a launch title for the Xboxgaming system, and is considered the platform's "killer app". With more than five million copies sold worldwide as of November 9, 2005, Microsoft released versions of the game for Microsoft Windows (ported by Gearbox Software) and Mac OS X in 2003, and the surrounding storyline was adapted and elaborated into a series of novels and comic books. The game was later released as an Xbox Original for download onto an Xbox 360 HDD.
Halo is set in the twenty-sixth century, with the player assuming the role of the Master Chief, a cybernetically enhanced super-soldier. The player is accompanied by Cortana, an artificial intelligence who occupies the Master Chief's neural interface. Players battle various aliens on foot and in vehicles as they attempt to uncover the secrets of the eponymous Halo, a ring-shaped artificial planet. The game has been called "easy to learn", and has been praised for its "engaging story".
Many game magazines have praised Halo as one of the best and most important games of all time. The game's popularity has led to labels such as "Halo clone" and "Halo killer", applied respectively to games either similar to or anticipated to be better than it. In addition, the game inspired and was used in the fan-created Red vs. Blue video series, which is credited as the "first big success" of machinima (the technique of using real-time 3D engines, often from video games, to create animated films). A prequel to the game and Bungie's last Halo title, Halo: Reach, was released on September 14, 2010.
Download Halo Game >>  Halo : Combat Evolved.rar (130MB)


DON'T FORGET TO COMMENT AND FOLLOW. THANK YOU FOR VISIT.. ^_^

Sunday, May 1, 2011

Meningkatkan Performance Windows 7


Memang benar, Windows 7 membutuhkan resource hardware yang lebih tinggi jika dibandingkan dengan windows versi sebelumnya. Hardware yang dimaksud tersebut termasuk penggunakan processor, memory, VGA dan device yang lainnya. Jika dilihat dari segi tampilan, Windows 7 membutuhkan lebih banyak memakan alokasi memory untuk sekedar menampilkan efek visual yang lebih menarik.
Lalu, bagaimana dengan komputer dengan memory minimal yang ingin tetap memanfaatkan Windows 7 sebagai operating system?
Jawabannya adalah dengan mengatur visual effects agar tidak terlalu banyak memakan memory komputer. Untuk mengatur visual effects agar tidak terlalu memakan banyak alokasi memory komputer/notebook, ikuti langkah-langkah di bawah ini:
  • Klik tombol Start, arahkan mouse pada My Computer.
  • Klik kanan My Computer dan pilih Properties.
  • Klik Advanced System Settings.

        Meningkatkan Performa Windows 7 Dengan Menonaktifkan Visual Effects Image


  • Pada jendela yang baru terbuka, klik tab Advanced kemudian klik tombol Settings.

Meningkatkan Performa Windows 7 Dengan Menonaktifkan Visual Effects Image

  • Di bagian Visual Effects, klik Adjust for best performance.

    Meningkatkan Performa Windows 7 Dengan Menonaktifkan Visual Effects Image
  • Terakhir klik tombol OK atau Apply.
Tunggu beberapa detik anda akan melihat perubahan yang signifikan dari segi tampilan Windows. Memang benar, tampilam akan lebih jelek dari sebelumnya, tetapi jika diukur dari segi performa komputer akan lebih cepat dari sebelumnya.
Berikut ini adalah gambar perbandingan sebelum dan sesudah meminimalisir penggunaan visual effects pada Windows 7. Bisa dilihat ada penurunan yang signifikan pada penggunaan memory.

Meningkatkan Performa Windows 7 Dengan Menonaktifkan Visual Effects Image

Hasil ini bisa berbeda pada setiap komputer karena tergantung dari hardware yang anda gunakan juga. Jika komputer/notebook anda memiliki memory yang besar, mungkin trik ini tidak akan banyak berpengaruh karena visual effects hanya memakan beberapa percent dari memory secara keseluruhan.
Selain itu, trik ini juga bisa menjadi referensi jika menginginkan mengorganisir visual effects dari Windows 7. Tentukan sendiri animasi, appearance dan efek pada Windows 7.

Selamat mencoba!


Sumber




DON'T FORGET TO COMMENT AND FOLLOW. THANK YOU FOR VISIT.. ^_^