SlideShare ist ein Scribd-Unternehmen logo
1 von 20
MAKALAH PEMROGRAMAN KOMPUTER 1


Disusun untuk memenuhi tugas Ujian Tengah Semester
        Mata Kuliah Pemrogaman Komputer 1


                Dosen Pengampu:
               Wildan Suharso. S.Si




                      Oleh :

          Muhammad Sukron       10610067




         JURUSAN MATEMATIKA
     FAKULTAS SAINS DAN TEKNOLOGI
UNIVERSITAS ISLAM NEGERI MAULANA MALIK
            IBRAHIM MALANG
                  2012
BAB I

                          FLOWCHART

1.1 Irisan, Gabungan dan Komplemen



                              Start




       dipilih() as char
       nilai, nilai2 as integer
       f, g,h as string
       A()as string = a.Split(pecah)
       B()as string = b.Split(pecah)
       S()as string = s.Split(pecah)


               f = TextBox1.Text
               g = TextBox2.Text
               h = TextBox3.Text



                 For i = 0 To Ubound(A)




                    For j = 0 To       Ubound(B)




                           If A (i)= B (j)




 B                                 A               C
B                  A              C



          ListBox1.Items.Add(A (i))




         for i=0 to Ubound (A)




          ListBox2.Items.Add(A(i))




        for j = 0 to Ubound (B)




        for k = 0 to Ubound (A)




                If B(j) < > A(k)




E                      D              F
E                D                   F


          nilai = nilai + 1




       If nilai > A.Length - 1




     ListBox2.Items.Add(B(j))




              nilai = 0



    for i = 0 to Ubound (S)




    for j = 0 to Ubound (A)




I                H               J
I              H               J


    If S(i) <> A(j)




         Nilai2 += 1




        If x > A.Length -
    1




    ListBox3.Items.Add(S(i))




            Nilai2 = 0




               Stop
1.2 Selection Sort irisan A dan B




                                        Start




                    i, r , q, m, n As Integer
                    r = ListBox1.Items.Count - 1
                    selec_irisan(r) As Integer


                                  For i = 0 To r



                    Selec_irisan(i) = ListBox1.Items(i)



                               For i = 0 To
                               selec_irisan. length
                               1

                                        m = i


                           For q = i + 1 To
                           selec_irisan.Length- 1



M                                         K               N
M                      K                N




             If selec_ irisan (q) <
             selec_irisan(m)




                     m=q



                     If m <> i



    n = selec_irisan (i)
    selec_irisan(i) = selec_irisan(m)
    selec_irisan(m) = n


           For p = 0 To
           selec_irisan.Length - 1




         TextBox4.AppendText(CStr(se
         lec_irisan(p)) & " ")




                      Stop
1.3 Selection Sort Gabungan A dan B


                                     Start




                     min, temp, y As Integer
                     y = ListBox2.Items.Count - 1
                     gabunganAB(x) As Integer


                                  For i = 0 To y



                     Selec_gabungan (i) = ListBox2.Items(i)



                              For i = 0 To
                              Selc_gabungn.Length-1



                                      min = i


                           For j = i + 1 To
                           Selec_gabungan.Length - 1



P                                      O                      Q
P                    O                       Q




            If Selec_gabungan (j)
            < Selec_gabungan
            (min)


                   min = j



                  If min <> i



    temp = Selec_gabungan (i)
    Selec_gabungan (i) = Selec_gabungan(m)
    Selec_gabungan (min) = temp


          For p= 0 To
          Selec_gabungan.Length
          -1


        TextBox4.AppendText(CStr(ga
        Selec_gabungan (p)) & " ")




                    Stop
1.4 Selection Sort komplemen A terhadap S




                                    Start




                    km, kp, z As Integer
                    z = ListBox3.Items.Count - 1
                    selec_komplemn(z) As Integer


                                 For i = 0 To z



                    selec_komplemn (i) = ListBox3.Items(i)



                             For i = 0 To
                             selc_komplmn.Length-1



                                     km = i


                          For j = i + 1 To
                          selec_komplemn.Length - 1



 S                                    R                      T
P                    O                      Q




            If selec_komplemn (j)
            < selc_komplmn (km)




                   km = j



                  If km < > i



    kp = selec_komplemn (i)
    selec_komplmn (i) = selc_komplmn (km)
    selec_komplemn (km) = kp


          For p= 0 To
          selec_komplemn.Length
          -1


        TextBox4.AppendText(CStr(k
        selec_komplemn (p)) & " ")




                    Stop
BAB II

                            PESEUDOCODE



2.1 Irisan

  For i = 0 to Ubound[A] {

      For j = 0 to Ubound[B]

           If A[i]=B[j]

       }

  }

2.2 Gabungan

For i = 0 to Ubound[B] {

   For j = 0 to Ubound[A]

           If B[i]< >A[j]

               Nilai = nilai + 1

           If nilai > A.length – 1

               Nilai = 0

       }

  }



2.3 Komplemen

For i = 0 to Ubound[S] {
For j = 0 to Ubound[A]

           If S[i]< >A[j]

               Nilai2 + = 1

           If nilai2 > A.length – 1

               Nilai2 = 0

       }

   }



2.4 Selection Irisan

   For i = 0 to selec_irisan.length – 1{

           m=i

           for q = i + 1 to selec_irisan.length – 1

               if selec_irisan [q] < selec_irisan [m]

                    m=0

               if m < > i

                    n= selec_irisan [i]

                    selec_irisan [i] = selec_irisan [m]

                    selec_irisan [m] = n

       }

   }
2.5 Selection Gabungan

   For i = 0 to selec_gabungan.length – 1{

           min = i

           for j = i + 1 to selec_gabunga.length – 1

               if selec_gabungan [j] < selec_gabungan [min]

                     min = j

               if min < > i

                     temp = selec_gabungan [i]

                     selec_ gabungan [i] = selec_gabungan [min]

                     selec_ gabungan [min] = temp

       }

   }




2.6 Selection Komplemen

   For i = 0 to selec_komplemen.length – 1{

           km = i

           for j = i + 1 to selec_komplemen.length – 1

               if selec_komplemen [j] < selec_komplemen [km]

                     km = j
if km < > i

            kp = selec_komplemen [i]

            selec_komplemen [i] = selec_komplemen [km]

            selec_komplemen [km] = kp

    }

}
BAB III

TAMPILAN APLIKASI
BAB IV

                        SOURCE
Public Class Form1

    Private Sub Button1_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
Button1.Click
        Dim dipilih() As Char = {".", ",", "*", " "}
        Dim f, g, h As String
        Dim nilai, nilai2 As Integer
        nilai = 0
        nilai2 = 0
        f = TextBox1.Text
        g = TextBox2.Text
        h = TextBox3.Text

       Dim A() As String = f.Split(dipilih)
       Dim B() As String = g.Split(dipilih)
       Dim S() As String = h.Split(dipilih)

       'irisan
       For i = 0 To UBound(A)
            For j = 0 To UBound(B)
                If A(i) = B(j) Then
                    ListBox1.Items.Add(A(i))
                End If
            Next
       Next

       'gabungan
       For i = 0 To UBound(A)
            ListBox2.Items.Add(A(i))
       Next

       For i = 0 To UBound(B)
            For j = 0 To UBound(A)
                If B(i) <> A(j) Then
                    nilai = nilai + 1
                End If
            Next
            If nilai > A.Length - 1 Then
                ListBox2.Items.Add(B(i))
            End If
            nilai = 0
       Next
       'komplemen
For i = 0 To UBound(S)
             For j = 0 To UBound(A)
                 If S(i) <> A(j) Then
                     nilai2 += 1
                 End If
             Next
             If nilai2 > A.Length - 1 Then
                 ListBox3.Items.Add(S(i))
             End If
             nilai2 = 0
        Next

    End Sub


    Private Sub Label13_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
Label13.Click
        Refresh()
        TextBox1.Text = ""
        TextBox2.Text = ""
        TextBox3.Text = ""
        TextBox4.Text = ""
        TextBox5.Text = ""
        TextBox6.Text = ""
        ListBox1.Text = ""
        ListBox2.Text = ""
        ListBox3.Text = ""
    End Sub

    Private Sub Label15_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
Label15.Click
        MsgBox("muhammad sukron" + vbCrLf + "10610067")
    End Sub

    Private Sub Button2_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
Button2.Click
        'sort irirsan
        Dim i, r, q, m, n As Integer
        r = ListBox1.Items.Count - 1
        Dim selec_irisan(r) As Integer
        For i = 0 To r
             selec_irisan(i) = ListBox1.Items(i)
        Next
        For i = 0 To selec_irisan.Length - 1
             m = i
             For q = i + 1 To selec_irisan.Length - 1
If selec_irisan(q) < selec_irisan(m) Then
                       m = q
                   End If
               Next
               If m <> i Then
                   n = selec_irisan(i)
                   selec_irisan(i) = selec_irisan(m)
                   selec_irisan(m) = n
               End If
        Next

        For p = 0 To selec_irisan.Length - 1
            TextBox4.AppendText(" " +
CStr(selec_irisan(p)))

        Next
        'sort gabungan
        Dim min, temp, y As Integer
        y = ListBox2.Items.Count - 1
        Dim selec_gabungan(y) As Integer
        For i = 0 To y
             selec_gabungan(i) = ListBox2.Items(i)
        Next
        For i = 0 To selec_gabungan.Length - 1
             min = i
             For j = i + 1 To selec_gabungan.Length - 1
                 If selec_gabungan(j) <
selec_gabungan(min) Then
                     min = j
                 End If
             Next
             If min <> i Then
                 temp = selec_gabungan(i)
                 selec_gabungan(i) = selec_gabungan(min)
                 selec_gabungan(min) = temp
             End If
        Next
        For p = 0 To selec_gabungan.Length - 1
             TextBox5.AppendText(" " +
CStr(selec_gabungan(p)))
        Next



        'sort komplemen

        Dim km, kp, z As Integer
        z = ListBox3.Items.Count - 1
        Dim selec_komplemen(z) As Integer
For i = 0 To z
             selec_komplemen(i) = ListBox3.Items(i)
        Next
        For i = 0 To selec_komplemen.Length - 1
             km = i
             For j = i + 1 To selec_komplemen.Length - 1
                 If selec_komplemen(j) <
selec_komplemen(km) Then
                     km = j
                 End If
             Next

               If km <> i Then
                   kp = selec_komplemen(i)
                   selec_komplemen(i) = selec_komplemen(km)
                   selec_komplemen(km) = kp
               End If
        Next

        For p = 0 To selec_komplemen.Length - 1
             TextBox6.AppendText(" " +
CStr(selec_komplemen(p)))
        Next
    End Sub
End Class

Weitere ähnliche Inhalte

Was ist angesagt?

On best one sided approximation by multivariate lagrange
      On best one sided approximation by multivariate lagrange      On best one sided approximation by multivariate lagrange
On best one sided approximation by multivariate lagrangeAlexander Decker
 
Applications of Homotopy perturbation Method and Sumudu Transform for Solving...
Applications of Homotopy perturbation Method and Sumudu Transform for Solving...Applications of Homotopy perturbation Method and Sumudu Transform for Solving...
Applications of Homotopy perturbation Method and Sumudu Transform for Solving...IJRES Journal
 
2017-12, Keio University, Projection-based Regularized Dual Averaging for Sto...
2017-12, Keio University, Projection-based Regularized Dual Averaging for Sto...2017-12, Keio University, Projection-based Regularized Dual Averaging for Sto...
2017-12, Keio University, Projection-based Regularized Dual Averaging for Sto...asahiushio1
 
International journal of engineering and mathematical modelling vol2 no3_2015_2
International journal of engineering and mathematical modelling vol2 no3_2015_2International journal of engineering and mathematical modelling vol2 no3_2015_2
International journal of engineering and mathematical modelling vol2 no3_2015_2IJEMM
 
2017-03, ICASSP, Projection-based Dual Averaging for Stochastic Sparse Optimi...
2017-03, ICASSP, Projection-based Dual Averaging for Stochastic Sparse Optimi...2017-03, ICASSP, Projection-based Dual Averaging for Stochastic Sparse Optimi...
2017-03, ICASSP, Projection-based Dual Averaging for Stochastic Sparse Optimi...asahiushio1
 
Paper Introduction: Combinatorial Model and Bounds for Target Set Selection
Paper Introduction: Combinatorial Model and Bounds for Target Set SelectionPaper Introduction: Combinatorial Model and Bounds for Target Set Selection
Paper Introduction: Combinatorial Model and Bounds for Target Set SelectionYu Liu
 
2017-07, Research Seminar at Keio University, Metric Perspective of Stochasti...
2017-07, Research Seminar at Keio University, Metric Perspective of Stochasti...2017-07, Research Seminar at Keio University, Metric Perspective of Stochasti...
2017-07, Research Seminar at Keio University, Metric Perspective of Stochasti...asahiushio1
 
Some New Operations on Fuzzy Soft Sets
Some New Operations on Fuzzy Soft SetsSome New Operations on Fuzzy Soft Sets
Some New Operations on Fuzzy Soft SetsIJMER
 
Fixed point result in probabilistic metric space
Fixed point result in probabilistic metric spaceFixed point result in probabilistic metric space
Fixed point result in probabilistic metric spaceAlexander Decker
 
Errors in the Discretized Solution of a Differential Equation
Errors in the Discretized Solution of a Differential EquationErrors in the Discretized Solution of a Differential Equation
Errors in the Discretized Solution of a Differential Equationijtsrd
 
A semi analytic method for solving two-dimensional fractional dispersion equa...
A semi analytic method for solving two-dimensional fractional dispersion equa...A semi analytic method for solving two-dimensional fractional dispersion equa...
A semi analytic method for solving two-dimensional fractional dispersion equa...Alexander Decker
 
EXACT SOLUTIONS OF A FAMILY OF HIGHER-DIMENSIONAL SPACE-TIME FRACTIONAL KDV-T...
EXACT SOLUTIONS OF A FAMILY OF HIGHER-DIMENSIONAL SPACE-TIME FRACTIONAL KDV-T...EXACT SOLUTIONS OF A FAMILY OF HIGHER-DIMENSIONAL SPACE-TIME FRACTIONAL KDV-T...
EXACT SOLUTIONS OF A FAMILY OF HIGHER-DIMENSIONAL SPACE-TIME FRACTIONAL KDV-T...cscpconf
 
A COMPARISON OF PARTICLE SWARM OPTIMIZATION AND DIFFERENTIAL EVOLUTION
A COMPARISON OF PARTICLE SWARM OPTIMIZATION AND DIFFERENTIAL EVOLUTIONA COMPARISON OF PARTICLE SWARM OPTIMIZATION AND DIFFERENTIAL EVOLUTION
A COMPARISON OF PARTICLE SWARM OPTIMIZATION AND DIFFERENTIAL EVOLUTIONijsc
 
On the Application of a Classical Fixed Point Method in the Optimization of a...
On the Application of a Classical Fixed Point Method in the Optimization of a...On the Application of a Classical Fixed Point Method in the Optimization of a...
On the Application of a Classical Fixed Point Method in the Optimization of a...BRNSS Publication Hub
 
A new approach to constants of the motion and the helmholtz conditions
A new approach to constants of the motion and the helmholtz conditionsA new approach to constants of the motion and the helmholtz conditions
A new approach to constants of the motion and the helmholtz conditionsAlexander Decker
 
Wasserstein GAN
Wasserstein GANWasserstein GAN
Wasserstein GANJinho Lee
 

Was ist angesagt? (18)

Ols
OlsOls
Ols
 
On best one sided approximation by multivariate lagrange
      On best one sided approximation by multivariate lagrange      On best one sided approximation by multivariate lagrange
On best one sided approximation by multivariate lagrange
 
Applications of Homotopy perturbation Method and Sumudu Transform for Solving...
Applications of Homotopy perturbation Method and Sumudu Transform for Solving...Applications of Homotopy perturbation Method and Sumudu Transform for Solving...
Applications of Homotopy perturbation Method and Sumudu Transform for Solving...
 
2017-12, Keio University, Projection-based Regularized Dual Averaging for Sto...
2017-12, Keio University, Projection-based Regularized Dual Averaging for Sto...2017-12, Keio University, Projection-based Regularized Dual Averaging for Sto...
2017-12, Keio University, Projection-based Regularized Dual Averaging for Sto...
 
PMED Transition Workshop - A Bayesian Model for Joint Longitudinal and Surviv...
PMED Transition Workshop - A Bayesian Model for Joint Longitudinal and Surviv...PMED Transition Workshop - A Bayesian Model for Joint Longitudinal and Surviv...
PMED Transition Workshop - A Bayesian Model for Joint Longitudinal and Surviv...
 
International journal of engineering and mathematical modelling vol2 no3_2015_2
International journal of engineering and mathematical modelling vol2 no3_2015_2International journal of engineering and mathematical modelling vol2 no3_2015_2
International journal of engineering and mathematical modelling vol2 no3_2015_2
 
2017-03, ICASSP, Projection-based Dual Averaging for Stochastic Sparse Optimi...
2017-03, ICASSP, Projection-based Dual Averaging for Stochastic Sparse Optimi...2017-03, ICASSP, Projection-based Dual Averaging for Stochastic Sparse Optimi...
2017-03, ICASSP, Projection-based Dual Averaging for Stochastic Sparse Optimi...
 
Paper Introduction: Combinatorial Model and Bounds for Target Set Selection
Paper Introduction: Combinatorial Model and Bounds for Target Set SelectionPaper Introduction: Combinatorial Model and Bounds for Target Set Selection
Paper Introduction: Combinatorial Model and Bounds for Target Set Selection
 
2017-07, Research Seminar at Keio University, Metric Perspective of Stochasti...
2017-07, Research Seminar at Keio University, Metric Perspective of Stochasti...2017-07, Research Seminar at Keio University, Metric Perspective of Stochasti...
2017-07, Research Seminar at Keio University, Metric Perspective of Stochasti...
 
Some New Operations on Fuzzy Soft Sets
Some New Operations on Fuzzy Soft SetsSome New Operations on Fuzzy Soft Sets
Some New Operations on Fuzzy Soft Sets
 
Fixed point result in probabilistic metric space
Fixed point result in probabilistic metric spaceFixed point result in probabilistic metric space
Fixed point result in probabilistic metric space
 
Errors in the Discretized Solution of a Differential Equation
Errors in the Discretized Solution of a Differential EquationErrors in the Discretized Solution of a Differential Equation
Errors in the Discretized Solution of a Differential Equation
 
A semi analytic method for solving two-dimensional fractional dispersion equa...
A semi analytic method for solving two-dimensional fractional dispersion equa...A semi analytic method for solving two-dimensional fractional dispersion equa...
A semi analytic method for solving two-dimensional fractional dispersion equa...
 
EXACT SOLUTIONS OF A FAMILY OF HIGHER-DIMENSIONAL SPACE-TIME FRACTIONAL KDV-T...
EXACT SOLUTIONS OF A FAMILY OF HIGHER-DIMENSIONAL SPACE-TIME FRACTIONAL KDV-T...EXACT SOLUTIONS OF A FAMILY OF HIGHER-DIMENSIONAL SPACE-TIME FRACTIONAL KDV-T...
EXACT SOLUTIONS OF A FAMILY OF HIGHER-DIMENSIONAL SPACE-TIME FRACTIONAL KDV-T...
 
A COMPARISON OF PARTICLE SWARM OPTIMIZATION AND DIFFERENTIAL EVOLUTION
A COMPARISON OF PARTICLE SWARM OPTIMIZATION AND DIFFERENTIAL EVOLUTIONA COMPARISON OF PARTICLE SWARM OPTIMIZATION AND DIFFERENTIAL EVOLUTION
A COMPARISON OF PARTICLE SWARM OPTIMIZATION AND DIFFERENTIAL EVOLUTION
 
On the Application of a Classical Fixed Point Method in the Optimization of a...
On the Application of a Classical Fixed Point Method in the Optimization of a...On the Application of a Classical Fixed Point Method in the Optimization of a...
On the Application of a Classical Fixed Point Method in the Optimization of a...
 
A new approach to constants of the motion and the helmholtz conditions
A new approach to constants of the motion and the helmholtz conditionsA new approach to constants of the motion and the helmholtz conditions
A new approach to constants of the motion and the helmholtz conditions
 
Wasserstein GAN
Wasserstein GANWasserstein GAN
Wasserstein GAN
 

Ähnlich wie Makalah pk

Ähnlich wie Makalah pk (20)

Chap09alg
Chap09algChap09alg
Chap09alg
 
Chap09alg
Chap09algChap09alg
Chap09alg
 
1D Array
1D Array1D Array
1D Array
 
chap09alg.ppt for string matching algorithm
chap09alg.ppt for string matching algorithmchap09alg.ppt for string matching algorithm
chap09alg.ppt for string matching algorithm
 
Poggi analytics - distance - 1a
Poggi   analytics - distance - 1aPoggi   analytics - distance - 1a
Poggi analytics - distance - 1a
 
Dynamic programming - fundamentals review
Dynamic programming - fundamentals reviewDynamic programming - fundamentals review
Dynamic programming - fundamentals review
 
U0 vqmtq3mja=
U0 vqmtq3mja=U0 vqmtq3mja=
U0 vqmtq3mja=
 
Imc2017 day2-solutions
Imc2017 day2-solutionsImc2017 day2-solutions
Imc2017 day2-solutions
 
Randomized algorithms ver 1.0
Randomized algorithms ver 1.0Randomized algorithms ver 1.0
Randomized algorithms ver 1.0
 
List comprehensions
List comprehensionsList comprehensions
List comprehensions
 
Fixed Point Theorem in Fuzzy Metric Space Using (CLRg) Property
Fixed Point Theorem in Fuzzy Metric Space Using (CLRg) PropertyFixed Point Theorem in Fuzzy Metric Space Using (CLRg) Property
Fixed Point Theorem in Fuzzy Metric Space Using (CLRg) Property
 
Array
ArrayArray
Array
 
19. algorithms and-complexity
19. algorithms and-complexity19. algorithms and-complexity
19. algorithms and-complexity
 
Ch3(1).pptxbbbbbbbbbbbbbbbbbbbhhhhhhhhhh
Ch3(1).pptxbbbbbbbbbbbbbbbbbbbhhhhhhhhhhCh3(1).pptxbbbbbbbbbbbbbbbbbbbhhhhhhhhhh
Ch3(1).pptxbbbbbbbbbbbbbbbbbbbhhhhhhhhhh
 
Kotlin for Android Developers - 2
Kotlin for Android Developers - 2Kotlin for Android Developers - 2
Kotlin for Android Developers - 2
 
Closeszdfgjklfghjt.string
Closeszdfgjklfghjt.stringCloseszdfgjklfghjt.string
Closeszdfgjklfghjt.string
 
Array
ArrayArray
Array
 
String searching
String searching String searching
String searching
 
ch3.ppt
ch3.pptch3.ppt
ch3.ppt
 
Lec2 slides
Lec2 slidesLec2 slides
Lec2 slides
 

Kürzlich hochgeladen

👙 Kolkata Call Girls Park Circus 💫💫7001035870 Model escorts Service
👙  Kolkata Call Girls Park Circus 💫💫7001035870 Model escorts Service👙  Kolkata Call Girls Park Circus 💫💫7001035870 Model escorts Service
👙 Kolkata Call Girls Park Circus 💫💫7001035870 Model escorts Serviceanamikaraghav4
 
College Call Girls New Alipore - For 7001035870 Cheap & Best with original Ph...
College Call Girls New Alipore - For 7001035870 Cheap & Best with original Ph...College Call Girls New Alipore - For 7001035870 Cheap & Best with original Ph...
College Call Girls New Alipore - For 7001035870 Cheap & Best with original Ph...anamikaraghav4
 
Call Girls Agency In Goa 💚 9316020077 💚 Call Girl Goa By Russian Call Girl ...
Call Girls  Agency In Goa  💚 9316020077 💚 Call Girl Goa By Russian Call Girl ...Call Girls  Agency In Goa  💚 9316020077 💚 Call Girl Goa By Russian Call Girl ...
Call Girls Agency In Goa 💚 9316020077 💚 Call Girl Goa By Russian Call Girl ...russian goa call girl and escorts service
 
Independent Joka Escorts ✔ 8250192130 ✔ Full Night With Room Online Booking 2...
Independent Joka Escorts ✔ 8250192130 ✔ Full Night With Room Online Booking 2...Independent Joka Escorts ✔ 8250192130 ✔ Full Night With Room Online Booking 2...
Independent Joka Escorts ✔ 8250192130 ✔ Full Night With Room Online Booking 2...noor ahmed
 
↑Top Model (Kolkata) Call Girls Behala ⟟ 8250192130 ⟟ High Class Call Girl In...
↑Top Model (Kolkata) Call Girls Behala ⟟ 8250192130 ⟟ High Class Call Girl In...↑Top Model (Kolkata) Call Girls Behala ⟟ 8250192130 ⟟ High Class Call Girl In...
↑Top Model (Kolkata) Call Girls Behala ⟟ 8250192130 ⟟ High Class Call Girl In...noor ahmed
 
Low Rate Young Call Girls in Surajpur Greater Noida ✔️☆9289244007✔️☆ Female E...
Low Rate Young Call Girls in Surajpur Greater Noida ✔️☆9289244007✔️☆ Female E...Low Rate Young Call Girls in Surajpur Greater Noida ✔️☆9289244007✔️☆ Female E...
Low Rate Young Call Girls in Surajpur Greater Noida ✔️☆9289244007✔️☆ Female E...SofiyaSharma5
 
Science City Kolkata ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sex...
Science City Kolkata ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sex...Science City Kolkata ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sex...
Science City Kolkata ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sex...rahim quresi
 
Beautiful 😋 Call girls in Lahore 03210033448
Beautiful 😋 Call girls in Lahore 03210033448Beautiful 😋 Call girls in Lahore 03210033448
Beautiful 😋 Call girls in Lahore 03210033448ont65320
 
𓀤Call On 6297143586 𓀤 Sonagachi Call Girls In All Kolkata 24/7 Provide Call W...
𓀤Call On 6297143586 𓀤 Sonagachi Call Girls In All Kolkata 24/7 Provide Call W...𓀤Call On 6297143586 𓀤 Sonagachi Call Girls In All Kolkata 24/7 Provide Call W...
𓀤Call On 6297143586 𓀤 Sonagachi Call Girls In All Kolkata 24/7 Provide Call W...rahim quresi
 
Call Girls Nashik Gayatri 7001305949 Independent Escort Service Nashik
Call Girls Nashik Gayatri 7001305949 Independent Escort Service NashikCall Girls Nashik Gayatri 7001305949 Independent Escort Service Nashik
Call Girls Nashik Gayatri 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
5* Hotels Call Girls In Goa {{07028418221}} Call Girls In North Goa Escort Se...
5* Hotels Call Girls In Goa {{07028418221}} Call Girls In North Goa Escort Se...5* Hotels Call Girls In Goa {{07028418221}} Call Girls In North Goa Escort Se...
5* Hotels Call Girls In Goa {{07028418221}} Call Girls In North Goa Escort Se...Apsara Of India
 
Independent Sonagachi Escorts ✔ 9332606886✔ Full Night With Room Online Booki...
Independent Sonagachi Escorts ✔ 9332606886✔ Full Night With Room Online Booki...Independent Sonagachi Escorts ✔ 9332606886✔ Full Night With Room Online Booki...
Independent Sonagachi Escorts ✔ 9332606886✔ Full Night With Room Online Booki...Riya Pathan
 
Model Call Girls In Pazhavanthangal WhatsApp Booking 7427069034 call girl ser...
Model Call Girls In Pazhavanthangal WhatsApp Booking 7427069034 call girl ser...Model Call Girls In Pazhavanthangal WhatsApp Booking 7427069034 call girl ser...
Model Call Girls In Pazhavanthangal WhatsApp Booking 7427069034 call girl ser... Shivani Pandey
 
Call Girls Manjri Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Manjri Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Manjri Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Manjri Call Me 7737669865 Budget Friendly No Advance Bookingroncy bisnoi
 
VIP Call Girls Nagpur Megha Call 7001035870 Meet With Nagpur Escorts
VIP Call Girls Nagpur Megha Call 7001035870 Meet With Nagpur EscortsVIP Call Girls Nagpur Megha Call 7001035870 Meet With Nagpur Escorts
VIP Call Girls Nagpur Megha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
Book Paid Sonagachi Call Girls Kolkata 𖠋 8250192130 𖠋Low Budget Full Independ...
Book Paid Sonagachi Call Girls Kolkata 𖠋 8250192130 𖠋Low Budget Full Independ...Book Paid Sonagachi Call Girls Kolkata 𖠋 8250192130 𖠋Low Budget Full Independ...
Book Paid Sonagachi Call Girls Kolkata 𖠋 8250192130 𖠋Low Budget Full Independ...noor ahmed
 
↑Top Model (Kolkata) Call Girls Rajpur ⟟ 8250192130 ⟟ High Class Call Girl In...
↑Top Model (Kolkata) Call Girls Rajpur ⟟ 8250192130 ⟟ High Class Call Girl In...↑Top Model (Kolkata) Call Girls Rajpur ⟟ 8250192130 ⟟ High Class Call Girl In...
↑Top Model (Kolkata) Call Girls Rajpur ⟟ 8250192130 ⟟ High Class Call Girl In...noor ahmed
 

Kürzlich hochgeladen (20)

👙 Kolkata Call Girls Park Circus 💫💫7001035870 Model escorts Service
👙  Kolkata Call Girls Park Circus 💫💫7001035870 Model escorts Service👙  Kolkata Call Girls Park Circus 💫💫7001035870 Model escorts Service
👙 Kolkata Call Girls Park Circus 💫💫7001035870 Model escorts Service
 
College Call Girls New Alipore - For 7001035870 Cheap & Best with original Ph...
College Call Girls New Alipore - For 7001035870 Cheap & Best with original Ph...College Call Girls New Alipore - For 7001035870 Cheap & Best with original Ph...
College Call Girls New Alipore - For 7001035870 Cheap & Best with original Ph...
 
Call Girls Agency In Goa 💚 9316020077 💚 Call Girl Goa By Russian Call Girl ...
Call Girls  Agency In Goa  💚 9316020077 💚 Call Girl Goa By Russian Call Girl ...Call Girls  Agency In Goa  💚 9316020077 💚 Call Girl Goa By Russian Call Girl ...
Call Girls Agency In Goa 💚 9316020077 💚 Call Girl Goa By Russian Call Girl ...
 
Independent Joka Escorts ✔ 8250192130 ✔ Full Night With Room Online Booking 2...
Independent Joka Escorts ✔ 8250192130 ✔ Full Night With Room Online Booking 2...Independent Joka Escorts ✔ 8250192130 ✔ Full Night With Room Online Booking 2...
Independent Joka Escorts ✔ 8250192130 ✔ Full Night With Room Online Booking 2...
 
↑Top Model (Kolkata) Call Girls Behala ⟟ 8250192130 ⟟ High Class Call Girl In...
↑Top Model (Kolkata) Call Girls Behala ⟟ 8250192130 ⟟ High Class Call Girl In...↑Top Model (Kolkata) Call Girls Behala ⟟ 8250192130 ⟟ High Class Call Girl In...
↑Top Model (Kolkata) Call Girls Behala ⟟ 8250192130 ⟟ High Class Call Girl In...
 
Low Rate Young Call Girls in Surajpur Greater Noida ✔️☆9289244007✔️☆ Female E...
Low Rate Young Call Girls in Surajpur Greater Noida ✔️☆9289244007✔️☆ Female E...Low Rate Young Call Girls in Surajpur Greater Noida ✔️☆9289244007✔️☆ Female E...
Low Rate Young Call Girls in Surajpur Greater Noida ✔️☆9289244007✔️☆ Female E...
 
Science City Kolkata ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sex...
Science City Kolkata ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sex...Science City Kolkata ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sex...
Science City Kolkata ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sex...
 
Beautiful 😋 Call girls in Lahore 03210033448
Beautiful 😋 Call girls in Lahore 03210033448Beautiful 😋 Call girls in Lahore 03210033448
Beautiful 😋 Call girls in Lahore 03210033448
 
𓀤Call On 6297143586 𓀤 Sonagachi Call Girls In All Kolkata 24/7 Provide Call W...
𓀤Call On 6297143586 𓀤 Sonagachi Call Girls In All Kolkata 24/7 Provide Call W...𓀤Call On 6297143586 𓀤 Sonagachi Call Girls In All Kolkata 24/7 Provide Call W...
𓀤Call On 6297143586 𓀤 Sonagachi Call Girls In All Kolkata 24/7 Provide Call W...
 
Call Girls Nashik Gayatri 7001305949 Independent Escort Service Nashik
Call Girls Nashik Gayatri 7001305949 Independent Escort Service NashikCall Girls Nashik Gayatri 7001305949 Independent Escort Service Nashik
Call Girls Nashik Gayatri 7001305949 Independent Escort Service Nashik
 
5* Hotels Call Girls In Goa {{07028418221}} Call Girls In North Goa Escort Se...
5* Hotels Call Girls In Goa {{07028418221}} Call Girls In North Goa Escort Se...5* Hotels Call Girls In Goa {{07028418221}} Call Girls In North Goa Escort Se...
5* Hotels Call Girls In Goa {{07028418221}} Call Girls In North Goa Escort Se...
 
Independent Sonagachi Escorts ✔ 9332606886✔ Full Night With Room Online Booki...
Independent Sonagachi Escorts ✔ 9332606886✔ Full Night With Room Online Booki...Independent Sonagachi Escorts ✔ 9332606886✔ Full Night With Room Online Booki...
Independent Sonagachi Escorts ✔ 9332606886✔ Full Night With Room Online Booki...
 
Model Call Girls In Pazhavanthangal WhatsApp Booking 7427069034 call girl ser...
Model Call Girls In Pazhavanthangal WhatsApp Booking 7427069034 call girl ser...Model Call Girls In Pazhavanthangal WhatsApp Booking 7427069034 call girl ser...
Model Call Girls In Pazhavanthangal WhatsApp Booking 7427069034 call girl ser...
 
Call Girls New Ashok Nagar Delhi WhatsApp Number 9711199171
Call Girls New Ashok Nagar Delhi WhatsApp Number 9711199171Call Girls New Ashok Nagar Delhi WhatsApp Number 9711199171
Call Girls New Ashok Nagar Delhi WhatsApp Number 9711199171
 
Call Girls Manjri Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Manjri Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Manjri Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Manjri Call Me 7737669865 Budget Friendly No Advance Booking
 
VIP Call Girls Nagpur Megha Call 7001035870 Meet With Nagpur Escorts
VIP Call Girls Nagpur Megha Call 7001035870 Meet With Nagpur EscortsVIP Call Girls Nagpur Megha Call 7001035870 Meet With Nagpur Escorts
VIP Call Girls Nagpur Megha Call 7001035870 Meet With Nagpur Escorts
 
Book Paid Sonagachi Call Girls Kolkata 𖠋 8250192130 𖠋Low Budget Full Independ...
Book Paid Sonagachi Call Girls Kolkata 𖠋 8250192130 𖠋Low Budget Full Independ...Book Paid Sonagachi Call Girls Kolkata 𖠋 8250192130 𖠋Low Budget Full Independ...
Book Paid Sonagachi Call Girls Kolkata 𖠋 8250192130 𖠋Low Budget Full Independ...
 
Call Girls Chirag Delhi Delhi WhatsApp Number 9711199171
Call Girls Chirag Delhi Delhi WhatsApp Number 9711199171Call Girls Chirag Delhi Delhi WhatsApp Number 9711199171
Call Girls Chirag Delhi Delhi WhatsApp Number 9711199171
 
CHEAP Call Girls in Malviya Nagar, (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in  Malviya Nagar, (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in  Malviya Nagar, (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Malviya Nagar, (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
↑Top Model (Kolkata) Call Girls Rajpur ⟟ 8250192130 ⟟ High Class Call Girl In...
↑Top Model (Kolkata) Call Girls Rajpur ⟟ 8250192130 ⟟ High Class Call Girl In...↑Top Model (Kolkata) Call Girls Rajpur ⟟ 8250192130 ⟟ High Class Call Girl In...
↑Top Model (Kolkata) Call Girls Rajpur ⟟ 8250192130 ⟟ High Class Call Girl In...
 

Makalah pk

  • 1. MAKALAH PEMROGRAMAN KOMPUTER 1 Disusun untuk memenuhi tugas Ujian Tengah Semester Mata Kuliah Pemrogaman Komputer 1 Dosen Pengampu: Wildan Suharso. S.Si Oleh : Muhammad Sukron 10610067 JURUSAN MATEMATIKA FAKULTAS SAINS DAN TEKNOLOGI UNIVERSITAS ISLAM NEGERI MAULANA MALIK IBRAHIM MALANG 2012
  • 2. BAB I FLOWCHART 1.1 Irisan, Gabungan dan Komplemen Start dipilih() as char nilai, nilai2 as integer f, g,h as string A()as string = a.Split(pecah) B()as string = b.Split(pecah) S()as string = s.Split(pecah) f = TextBox1.Text g = TextBox2.Text h = TextBox3.Text For i = 0 To Ubound(A) For j = 0 To Ubound(B) If A (i)= B (j) B A C
  • 3. B A C ListBox1.Items.Add(A (i)) for i=0 to Ubound (A) ListBox2.Items.Add(A(i)) for j = 0 to Ubound (B) for k = 0 to Ubound (A) If B(j) < > A(k) E D F
  • 4. E D F nilai = nilai + 1 If nilai > A.Length - 1 ListBox2.Items.Add(B(j)) nilai = 0 for i = 0 to Ubound (S) for j = 0 to Ubound (A) I H J
  • 5. I H J If S(i) <> A(j) Nilai2 += 1 If x > A.Length - 1 ListBox3.Items.Add(S(i)) Nilai2 = 0 Stop
  • 6. 1.2 Selection Sort irisan A dan B Start i, r , q, m, n As Integer r = ListBox1.Items.Count - 1 selec_irisan(r) As Integer For i = 0 To r Selec_irisan(i) = ListBox1.Items(i) For i = 0 To selec_irisan. length 1 m = i For q = i + 1 To selec_irisan.Length- 1 M K N
  • 7. M K N If selec_ irisan (q) < selec_irisan(m) m=q If m <> i n = selec_irisan (i) selec_irisan(i) = selec_irisan(m) selec_irisan(m) = n For p = 0 To selec_irisan.Length - 1 TextBox4.AppendText(CStr(se lec_irisan(p)) & " ") Stop
  • 8. 1.3 Selection Sort Gabungan A dan B Start min, temp, y As Integer y = ListBox2.Items.Count - 1 gabunganAB(x) As Integer For i = 0 To y Selec_gabungan (i) = ListBox2.Items(i) For i = 0 To Selc_gabungn.Length-1 min = i For j = i + 1 To Selec_gabungan.Length - 1 P O Q
  • 9. P O Q If Selec_gabungan (j) < Selec_gabungan (min) min = j If min <> i temp = Selec_gabungan (i) Selec_gabungan (i) = Selec_gabungan(m) Selec_gabungan (min) = temp For p= 0 To Selec_gabungan.Length -1 TextBox4.AppendText(CStr(ga Selec_gabungan (p)) & " ") Stop
  • 10. 1.4 Selection Sort komplemen A terhadap S Start km, kp, z As Integer z = ListBox3.Items.Count - 1 selec_komplemn(z) As Integer For i = 0 To z selec_komplemn (i) = ListBox3.Items(i) For i = 0 To selc_komplmn.Length-1 km = i For j = i + 1 To selec_komplemn.Length - 1 S R T
  • 11. P O Q If selec_komplemn (j) < selc_komplmn (km) km = j If km < > i kp = selec_komplemn (i) selec_komplmn (i) = selc_komplmn (km) selec_komplemn (km) = kp For p= 0 To selec_komplemn.Length -1 TextBox4.AppendText(CStr(k selec_komplemn (p)) & " ") Stop
  • 12. BAB II PESEUDOCODE 2.1 Irisan For i = 0 to Ubound[A] { For j = 0 to Ubound[B] If A[i]=B[j] } } 2.2 Gabungan For i = 0 to Ubound[B] { For j = 0 to Ubound[A] If B[i]< >A[j] Nilai = nilai + 1 If nilai > A.length – 1 Nilai = 0 } } 2.3 Komplemen For i = 0 to Ubound[S] {
  • 13. For j = 0 to Ubound[A] If S[i]< >A[j] Nilai2 + = 1 If nilai2 > A.length – 1 Nilai2 = 0 } } 2.4 Selection Irisan For i = 0 to selec_irisan.length – 1{ m=i for q = i + 1 to selec_irisan.length – 1 if selec_irisan [q] < selec_irisan [m] m=0 if m < > i n= selec_irisan [i] selec_irisan [i] = selec_irisan [m] selec_irisan [m] = n } }
  • 14. 2.5 Selection Gabungan For i = 0 to selec_gabungan.length – 1{ min = i for j = i + 1 to selec_gabunga.length – 1 if selec_gabungan [j] < selec_gabungan [min] min = j if min < > i temp = selec_gabungan [i] selec_ gabungan [i] = selec_gabungan [min] selec_ gabungan [min] = temp } } 2.6 Selection Komplemen For i = 0 to selec_komplemen.length – 1{ km = i for j = i + 1 to selec_komplemen.length – 1 if selec_komplemen [j] < selec_komplemen [km] km = j
  • 15. if km < > i kp = selec_komplemen [i] selec_komplemen [i] = selec_komplemen [km] selec_komplemen [km] = kp } }
  • 17. BAB IV SOURCE Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim dipilih() As Char = {".", ",", "*", " "} Dim f, g, h As String Dim nilai, nilai2 As Integer nilai = 0 nilai2 = 0 f = TextBox1.Text g = TextBox2.Text h = TextBox3.Text Dim A() As String = f.Split(dipilih) Dim B() As String = g.Split(dipilih) Dim S() As String = h.Split(dipilih) 'irisan For i = 0 To UBound(A) For j = 0 To UBound(B) If A(i) = B(j) Then ListBox1.Items.Add(A(i)) End If Next Next 'gabungan For i = 0 To UBound(A) ListBox2.Items.Add(A(i)) Next For i = 0 To UBound(B) For j = 0 To UBound(A) If B(i) <> A(j) Then nilai = nilai + 1 End If Next If nilai > A.Length - 1 Then ListBox2.Items.Add(B(i)) End If nilai = 0 Next 'komplemen
  • 18. For i = 0 To UBound(S) For j = 0 To UBound(A) If S(i) <> A(j) Then nilai2 += 1 End If Next If nilai2 > A.Length - 1 Then ListBox3.Items.Add(S(i)) End If nilai2 = 0 Next End Sub Private Sub Label13_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Label13.Click Refresh() TextBox1.Text = "" TextBox2.Text = "" TextBox3.Text = "" TextBox4.Text = "" TextBox5.Text = "" TextBox6.Text = "" ListBox1.Text = "" ListBox2.Text = "" ListBox3.Text = "" End Sub Private Sub Label15_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Label15.Click MsgBox("muhammad sukron" + vbCrLf + "10610067") End Sub Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click 'sort irirsan Dim i, r, q, m, n As Integer r = ListBox1.Items.Count - 1 Dim selec_irisan(r) As Integer For i = 0 To r selec_irisan(i) = ListBox1.Items(i) Next For i = 0 To selec_irisan.Length - 1 m = i For q = i + 1 To selec_irisan.Length - 1
  • 19. If selec_irisan(q) < selec_irisan(m) Then m = q End If Next If m <> i Then n = selec_irisan(i) selec_irisan(i) = selec_irisan(m) selec_irisan(m) = n End If Next For p = 0 To selec_irisan.Length - 1 TextBox4.AppendText(" " + CStr(selec_irisan(p))) Next 'sort gabungan Dim min, temp, y As Integer y = ListBox2.Items.Count - 1 Dim selec_gabungan(y) As Integer For i = 0 To y selec_gabungan(i) = ListBox2.Items(i) Next For i = 0 To selec_gabungan.Length - 1 min = i For j = i + 1 To selec_gabungan.Length - 1 If selec_gabungan(j) < selec_gabungan(min) Then min = j End If Next If min <> i Then temp = selec_gabungan(i) selec_gabungan(i) = selec_gabungan(min) selec_gabungan(min) = temp End If Next For p = 0 To selec_gabungan.Length - 1 TextBox5.AppendText(" " + CStr(selec_gabungan(p))) Next 'sort komplemen Dim km, kp, z As Integer z = ListBox3.Items.Count - 1 Dim selec_komplemen(z) As Integer
  • 20. For i = 0 To z selec_komplemen(i) = ListBox3.Items(i) Next For i = 0 To selec_komplemen.Length - 1 km = i For j = i + 1 To selec_komplemen.Length - 1 If selec_komplemen(j) < selec_komplemen(km) Then km = j End If Next If km <> i Then kp = selec_komplemen(i) selec_komplemen(i) = selec_komplemen(km) selec_komplemen(km) = kp End If Next For p = 0 To selec_komplemen.Length - 1 TextBox6.AppendText(" " + CStr(selec_komplemen(p))) Next End Sub End Class