Translate

This is default featured slide 1 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

This is default featured slide 2 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

This is default featured slide 3 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

This is default featured slide 4 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

This is default featured slide 5 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

Sunday 30 September 2012

TUGAS LOGIKA ALGORITMA


TUGAS LOGIKA DAN ALGORITMA




Soal pertemuan pertama

1.      Jelaskan peranan algoritma dalam pembuatan program !
2.      Buat algoritma bila seseorang mahasiswa akan melakukan pembayaran uang kuliah via Atm !
3.      Buatlah sebuah flowchart untuk menentukan akar kuadrat dari suatu bilangan bulat positif!
4.      Buatlah sebuah contoh pdeudocode bilangan bulat!
5.      Sebutkan cara menyatakan algoritma!
 



Jawaban :
1.       Suatu metode pemecahan masalah dalam menerjemahkan bahasa pemograman
2             o datang ke bank atau Atm
o   masukan kartu atm dan masukan kode pin anda
o   pilih bsi
o   Masukan nominal uang yang akan anda bayar
o   Klik enter
o   Lalu ambil kembali kartu anda


                      





3.
     http://muhammadfreeza.files.wordpress.com/2011/04/flowchart5.jpg
 








4. Menggunakan Pseudocode bilangan positif
Program Menentukan_Bilangan
{ Menentukan apakah suatu bilangan bulat positif adalah bilangan gasal atau genap }
KAMUS:
                n : integer > 0  {input bilangan bulat positif}
                m : integer > 0 {hasil sisa pembagian n dgn. 2}
ALGORITMA:
                input (n)
                m ¬ n mod 2
                if m = 0 then output (n, ‘ adalah bilangan genap’)
                else { m = 1 } output (n, ‘ adalah bilangan gasal’)             

5      .Menentukan model suatu algoritma yang digunakan sehingga dapat membuat barisan langkah secara berurutan guna mendapatkan solusi penyelesaian masalah.                      

luvne.com resepkuekeringku.com desainrumahnya.com yayasanbabysitterku.com