1 / 7

Algorithm

Algorithm. Definisi :. Ururan langkah-langkah logis untuk menyelesaikan suatu masalah Notasi Algoritm : 1. Algoritma Natural / kalimat : 2. Flowhart / simbol2 3. Pseudocode. Algortima : Masak Indomie rasa rendang. Mulai

jenna-mckay
Download Presentation

Algorithm

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. Algorithm

  2. Definisi: • Ururanlangkah-langkahlogisuntukmenyelesaikansuatumasalah • NotasiAlgoritm: • 1. Algoritma Natural / kalimat: • 2. Flowhart / simbol2 • 3. Pseudocode

  3. Algortima : MasakIndomie rasa rendang • Mulai • Siapkanpanci, kompor, gas, air, sendokgarpu, mangkok, danmie rasa rendang. • Masak air sampaimendidih, masukkanmiekedalam air yang mendidih, tuangkanbumbukedalammangkok • Tiriskanmie, lalumasukkandalammangkokberisibumbu, adukhingga rata. • Siapdisantap

  4. Algoritmauntukmenentukanmahasiswa lulus atautidak. Dinyatakan lulus jikanilai >60. • Mulai • Input nama, npm, nilai • Jikanilai >60  lulus, jikatidakmakatidak lulus • Tampilkanmahasiswa lulus/tidak lulus • selesai

  5. Algirtima: menjumlahkan 2 bilanganbulatsembarang • Mulai • Input nilaibilangan 1 danbilangan 2 • Jumlahkanbilangan 1 danbilangan 2 • Tampilkanhasilpenjumlahan • selesai

  6. Flowchart Mulai/ selesai Proses Input/ output ArahAliran Keputusan F T

  7. Buatlah flowchart darimasalahberikut: Menentukansisauangsakusetiaphari.Setiapharisayadiberikanuangsakusebesar 50000 olehmami. Berangkatkuliahnaikojekataubawamobilsendiri. Jikanaikojekmakaharusbayar 10rb rupiah, jikabawamobilharusbelibensin 20000 danparkir 2000. Saatmakansiangselalutraktirseorangtemanmakanan yang sama. Makanandikantinhanyaadabaksodanmieayam, masing2 seharga 10rb dan 12rb. Kadangtidakjajansamasekali.

More Related