ALGORITMA DAN PEMROGRAMAN

Jadi intinya algoritma itu bagaimana step by step dalam memecahkan suatu masalah,

What’s an Algorithm?

  • Originating from al-Khwārizmī

  (Abu Jafar Muhammad Ibnu Musa Al Khawarizmi)

–the famous Islamic mathematician

  • Step by step procedure for calculations
  • Well specified method for solving a computational problem

Lalu Pseudocode (Kode Palsu)

Menurut wikipedia, pengertian pseudocode adalah

deskripsi tingkat tinggiinformal dan ringkas atas algoritma pemrograman komputer yang menggunakankonvensi struktural atas suatu bahasa pemrograman, dan ditujukan untuk dibacaoleh manusia dan bukan oleh mesin.

Contoh :

Class Average

Start

Set total to zero

Set grade counter to one

While grade counter is less than or equal to ten

Input the next grade

Add the grade into the total

Add one to the grade counter

Set the class average to the total divided by ten

Print the class average.

End

Dari Pseudocode kita bakal lebih mudah untuk dikonversi ke bahasa pemrograman, seperti C misalnya. beberapa contoh kodingan sederhana yang aku buat seperti berikut :

a b d c

 

Semoga Bermanfaat

This entry was posted in Academic Orientation. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *