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.

Showing posts with label Latihan ALPRO. Show all posts
Showing posts with label Latihan ALPRO. Show all posts

Tuesday, April 23, 2013

Bilangan Fibonacci Rekursif

Kasus:
Buat bilangan fibonacci secara rekursif.
Algoritma:
Ini main-nya:


Ini prosedure nya:

Perkalian dengan metode penjumlahan Rekursif

Ini adalah kasus nya:
mengalikan bilangan yanga akan dikalikan dengan menjumlahkan bilangan masukkan pertama  sampai batasnya/pengalinya. ini menggunakan perulangan secara rekursif.
berikut Algoritmanya:
Fungsi mainnya:



Ini adalah prosedure:
 

Factorial secara Rekursif

Kasus:
Buatlah algoritma dengan menggunakan rekursif dari faktorial.
Algoritmanya adalah:
Ini adalah fungsi mainnya:



Ini adalah prosedure nya:

Pangkat dengan Rekursif

Kasus:
Dengan menggunakan rekursif tentukan penyelesaian dari bilangan berpangkat, dengan n pangkat m inputan dari users.
Algoritma:
Ini fungsi main dari pangkat: 


ini merupakan prosedure dari rekursif pangkat:

Bilangan Fibonacci

Berikut adalah algoritma untuk menentukan bilangan fibonacci dengan memasukkan n suku dari inputan user.
bilangan fibonacci di mulai dari suku pertama yaitu : 0,suku kedua yaitu : 1, suku ketiga merupakan penambahan dari suku pertama dengan suku kedua, jadi nilai suku ke-3 adalah "0+1=1", suku ke-4 nya adalah penambahan dari 2 suku sebelumnya yaitu "1+1=2" dan begitu seterusnya.
Let's see the Algorithm:

Wednesday, March 20, 2013

MENGITUNG DETERMINAN MATRIX ORDO 2X2

1. Algorithm:

MENGHITUNG TITIK TENGAH DARI SEBUAH GARIS

1. Reptor Algorithm:


Saturday, March 16, 2013

MENGHITUNG SEBUTAN BILANGAN 1-1000



 Raptor:



Generate of Algorithm: 
C++:

#include <iostream>
#include <string>
using namespace std;
int main()
{
   string raptor_prompt_variable_zzyz;
   int n;
   int a;
   int b;
   int c;
   int d;
   int p;
   int q;

   raptor_prompt_variable_zzyz ="masukkan bilangan = ";
   cout << raptor_prompt_variable_zzyz << endl;
   cin >> n;
   if (n<1000)
   {
      a =n % 10;
      b =n % 100;
      q =(b-a)/10;
      c =b-a;
      d =n-(a+c);
      p =d/100;
      cout << a<<" satuan"<<" , "<<q<<" puluhan"<<"  ,  "<<p<<" ratusan" << endl;   }
   else
   {
      cout << "bilangan terlalu besar" << endl;   }

   system ("PAUSE");
   return 0;
}