1 / 6

Presentasi

Contoh Program Kalkulator Borland Delphi 7

guest39918
Télécharger la présentation

Presentasi

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. BORLAN DELPHI Apa itu Borland delphi ??? Borland Delphi 7 merupakan bahasa pemrograman berbasis Windows. Delphi 7 dapat membantu untuk membuat berbagai macam aplikasi yang berjalan di sistem operasi Windows, mulai dari sebuah program sederhana sampai dengan program yang berbasiskan client/server atau jaringan. Delphi, termasuk aplikasi yang dapat digunakan untuk mengolah teks, grafik, angka, database dan aplikasi web.

  2. Berikut ini sebagian kecil dari banyak kelebihan Borland Delphi 7:Berbasis Object Oriented Programming (OOP). Setiap bagian yang ada pada program dipandang sebagai suatu object yang mempunyai sifat sifat yang dapat diubah dan diatur. Satu file .exe.(file komputer yang diakhiri dengan ekstensi “. Exe” atau dikenal sebagai file eksekusi.) Setelah program dirancang dalam IDE (Intergrated Development Environment) Delphi, Delphi akan mengkompilasinya menjadi sebuah file executable tunggal. Program yang dibuat dapat langsung didistribusikan dan dijalankan pada komputer lain tanpa perlu menyertakan file DLL dari luar. Ini merupakan sebuah kelebihan yang sangat berarti.Borland Delphi 7 hadir bersama Borland Kylix 3 yang berbasiskan Linux, sehingga memungkinkan programmer untuk membuat aplikasi multi-platform.

  3. CONTOH PROGRAM BORLAND DELPHIKALKULATOR SEDERHANA 2. Pada button “ –“ klik 2x dan paste code berikut : b1:integer; b2:integer; jml:integer; begin b1:=StrToInt(Eb1.Text); b2:=StrToInt(Eb2.Text); jml:=b1-b2; //operasi pengurangan Ejml.text:=FloatToStr(jml); end; 1. Klik 2x pada button “ + “,kemudian paste kode berikut : b1:integer; b2:integer; jml:integer; begin b1:=StrToInt(Eb1.Text); b2:=StrToInt(Eb2.Text); jml:=b1+b2; ///operasi penambahan Ejml.text:=FloatToStr(jml); End;

  4. 4. Pada operasi perkalian,paste code berikut : b1:integer; b2:integer; jml:integer; begin b1:=StrToInt(Eb1.Text); b2:=StrToInt(Eb2.Text); jml:=b1*b2; Ejml.text:=FloatToStr(jml); end; 3. Klik 2 x pada button “ / “, kemudian paste code berikut : b1:integer; b2:integer; jml:integer; begin b1:=StrToInt(Eb1.Text); b2:=StrToInt(Eb2.Text); jml:=b1 div b2; Ejml.text:=FloatToStr(jml); end; 6. Sedangkan untuk button “KELUAR” anda hanya tinggal menambahkan code berikut “ close ; “ tanpa tanda kutip. 5. Untuk button “ulang” paste lagi code berikut : begin Eb1.Text:='0'; Eb2.Text:='0'; Ejml.Text:='0'; end;

  5. Flowchart Kalkulator Sederhana

  6. Sumber/Reverensihttp://maribelajarit.wordpress.com/2011/04/19/apa-itu-borland-delphi/http://agussale.com/tahukah-anda-apa-itu-file-exehttp://sauri-sofyan.blogspot.com/2010/06/membuat-kalkulator-dengan-delphi-7.htmlhttp://www.sulaiman001.blogspot.comTerima KasihSemoga Bermanfaat

More Related