Academic Background

S2 Ilmu Komputer (2009), UGM (Bidang minat Kecerdasan Buatan)
S1 Fisika (2006), UGM (Bidang minat Elektronika dan Instrumentasi)
D3 Teknik Elektro (2002), UGM (Bidang minat Instrumentasi dan Kendali)
SMUN 1 Puri Mojokerto (1999)
SLTPN 4 Mojokerto (1996)
SDN Wates 5 Mojokerto (1993)

3 Responses

  1. // Nama : Deni Dwi Kurniawan
    // NIM : 09.11.3230
    // Kelas : S1.TI.3I

    #include
    #include
    #include
    #include

    using namespace std;

    int main() {
    const int MAX = 100; // definisikan maksimal anggota himpunan = 100
    int hA,hB,hU; // deklarasikan variabel nA = n|A|, nB = n|B|, nU = n|U|
    int himpunanA[MAX]; // deklarasikan array himpunanA
    int himpunanB[MAX]; // deklarasikan array himpunanB
    int himpunanU[MAX]; // deklarasikan array himpunanU = Universal

    char lagi=’Y’;

    printf(“\n TUGAS MATEMATIKA DISKRET PROGRAM MENGHITUNG HIMPUNAN\n”);
    printf(“\n Sekolah Tinggi Manajemen Informatika dan Komputer \n”);
    printf(“\n AMIKOM YOGYAKARTA \n”);
    printf(” =======================================================\n”);
    printf(“\t Nama\t : Deni Dwi Kurniawan\n\n NIM\t : 09.11.3230\n\n Kelas\t : S1TI3I\n\n”);
    printf(” =======================================================\n”);
    printf(” Untuk mengakses perhitungan tekan enter . . . !!!”);
    printf(“\n Enter : “);

    getch();

    do{
    clrscr();
    printf(“\n================================================”);
    printf(“\n\t MULAILAH MENGHITUNG HIMPUNAN “);
    printf(“\n\================================================”);

    printf(“\n\n Masukkan jumlah Himpunan Universal : “);
    scanf(“%d”,&hU);
    printf(” Masukkan jumlah Himpunan A : “);
    scanf(“%d”,&hA);
    if(hA > hU){
    printf(” jumlah anggota A tidak boleh lebih dari jumlah Anggota Universal\n Masukkan lagi jumlah Himpunan A : “);
    scanf(“%d”,&hA);
    }
    printf(” Masukkan jumlah Himpunan B : “);
    scanf(“%d”,&hB);

    if(hB > hU){
    printf(” jumlah anggota B tidak boleh lebih dari jumlah Anggota Universal\n Masukkan lagi jumlah Himpunan B : “);
    scanf(“%d”,&hB);
    }

    printf(“\n HIMPUNAN UNIVERSAL : \n”);
    for (int i=0; i<hU; i++){
    printf(" Masukkan anggota Himpunan Universal ke-%d : ", i+1);
    scanf("%d",&himpunanU[i]);
    }

    printf("\n HIMPUNAN A : \n");

    for (int i=0; i<hA; i++){
    printf(" Masukkan anggota Himpunan A ke-%d : ", i+1);
    scanf("%d",&himpunanA[i]);
    }

    printf("\n HIMPUNAN B : \n");

    for (int i=0; i<hB; i++){
    printf(" Masukkan anggota Himpunan B ke-%d : ", i+1);
    scanf("%d",&himpunanB[i]);
    }

    printf("\n—————————————–\n DATA YANG DIMASUKKAN");
    printf("\n—————————————–\n");

    printf("\n HIMPUNAN U \t: ");
    for(int i=0; i<hU; i++)
    printf("himpunanU[i]");
    printf("\n HIMPUNAN A \t: ");
    for(int i=0; i<hA; i++)
    printf("himpunanA[i]");
    printf("\n HIMPUNAN B \t: ");
    for(int i=0; i<hB; i++)
    printf("himpunanB[i]");

    clrscr();
    printf("\n ====================================================\n \t HASIL PENGHITUNGANNYA");
    printf("\n =====================================================\n\n");

    printf("\t A INTERSECTION B \t: ");
    set_intersection(himpunanA, himpunanA+hA, himpunanB, himpunanB+hB, ostream_iterator(cout, ” “));

    printf(“\n\n\t A UNION B \t\t: “);
    set_union(himpunanA, himpunanA+hA, himpunanB, himpunanB+hB, ostream_iterator(cout, ” “));

    printf(“\n\n\t A DIFFERENCE B \t: “);
    set_difference(himpunanA, himpunanA+hA, himpunanB, himpunanB+hB, ostream_iterator(cout, ” “));

    printf(“\n\n\t B DIFFERENCE A \t: “);
    set_difference(himpunanB, himpunanB+hB, himpunanA, himpunanA+hA, ostream_iterator(cout, ” “));

    printf(“\n\n\t COMPLEMENT A \t: “);
    set_difference(himpunanU, himpunanU+hU, himpunanA, himpunanA+hA, ostream_iterator(cout, ” “));

    printf(“\n\n\t COMPLEMENT B \t: “);
    set_difference(himpunanU, himpunanU+hU, himpunanB, himpunanB+hB, ostream_iterator(cout, ” “));

    printf(“\n\n —————————————————–\n\n”);

    printf(“\n Anda Ingan Menghitungnya Lagi (Y/N) ? “);
    scanf(“%s”,&lagi);
    }
    while(lagi==’Y’||lagi==’y’);
    getch();

    }

  2. //Nama : Yuni Sujiyati
    //NIM : 09.11.3284
    //Kelas : S1TI 3J

    #include
    #include
    #include
    #include
    int him1[100];
    int him2[100];
    int i,j,jum1,jum2,l;
    int irisan[100];
    bool sama;
    void main(){
    cout<<"Mencari irisan dari dua himpunan:";
    cout<<"\nmasukkan data himpunan pertama!"<<endl;
    cout<>jum1;
    for (i=1;i<=jum1;i++){
    cout<<"data "<<i<>him1[i];
    }
    cout<<"himpunan pertama:";
    for (i=1;i<=jum1;i++){
    cout<<him1[i]<<" ";
    }
    cout<<endl;
    cout<<"masukkan data himpunan kedua!"<<endl;
    cout<>jum2;
    for (j=1;j<=jum2;j++){
    cout<<"data "<<j<>him2[j];
    }
    cout<<"himpunan kedua:";
    for (j=1;j<=jum2;j++){
    cout<<him2[j]<<" ";
    }
    cout<<endl;
    //perintah irisan
    cout<<"Irisan dari kedua himpunan tersebut adalah:";
    l=0;
    for (i=1;i<=jum1;i++)
    {
    for (j=1;j<=jum2;j++)
    {
    if (him1[i]==him2[j])
    {
    l=l+1;
    irisan[l]=him1[i];
    cout<<irisan[l]<<" ";
    }
    }
    }
    getch();
    }

  3. //nama
    #include
    #include
    #include
    #include
    int him1[100];
    int him2[100];
    int i,j,jum1,jum2,l;
    int irisan[100];
    bool sama;
    void main(){
    cout<<"Mencari irisan dari dua himpunan:";
    cout<<"\nmasukkan data himpunan pertama!"<<endl;
    cout<>jum1;
    for (i=1;i<=jum1;i++){
    cout<<"data "<<i<>him1[i];
    }
    cout<<"himpunan pertama:";
    for (i=1;i<=jum1;i++){
    cout<<him1[i]<<" ";
    }
    cout<<endl;
    cout<<"masukkan data himpunan kedua!"<<endl;
    cout<>jum2;
    for (j=1;j<=jum2;j++){
    cout<<"data "<<j<>him2[j];
    }
    cout<<"himpunan kedua:";
    for (j=1;j<=jum2;j++){
    cout<<him2[j]<<" ";
    }
    cout<<endl;
    //perintah irisan
    cout<<"Irisan dari kedua himpunan tersebut adalah:";
    l=0;
    for (i=1;i<=jum1;i++)
    {
    for (j=1;j<=jum2;j++)
    {
    if (him1[i]==him2[j])
    {
    l=l+1;
    irisan[l]=him1[i];
    cout<<irisan[l]<<" ";
    }
    }
    }
    getch();
    }

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s