Sie sind auf Seite 1von 9

LEMBAR KERJA SISWA / JOBSHEET

Nama Siswa : MUHAMMAD AZMI RAMADHAN


Kelas : 10 MEKATRONIKA 1
Tanggal : SELASA , 27 agustus 2019

Kompete
nsi
dasar /
materi
pokok
1. Untuk mengetahaui suatu blok statetment dengan jumlah
Tujuan perulangan yang tak terhingga
2. Kita dapat memogram dengan baik dan benar
1. Laptop
2. Software Visual Basic 6.0
Alat dan
3. SNIPPING TOOL
bahan
4. plasdisk

Langkah
kerja TUGAS 1= DO UNTIL
1. Bukalah Microsoft visio
2. Bukak standart exe
3. Tuliskan 2 command , 1 combox,1 textbox
4. Masukan program berikut:

Private Sub Command1_Click()


Dim x As Integer

x=1

Do Until x = 999
Combo1.AddItem " " & x
Text1.Text = " " & x
x=x+1
Loop

End Sub
5. Penect tanda play

TUGAS 2 = FOR ….. NEXT


1. Bukalah Microsoft visio
2. Bukak standart exe
3. Tuliskan 3 command ,1 textbox
4. Masukkan program berikut:
Private Sub Command1_Click()
For y = 1 To Text1.Text
For x = 1 To y
Print y;
Next
Print
Next
End Sub

Private Sub Command2_Click()


Text1.Text = " "
End Sub

Private Sub Command3_Click()


Unload Me
End Sub
5.pencet tanda play

TUGAS 3= WHILE WEND

1. Buka Microsoft visio


2. Buka standart exe
3. Tuliskan 1 comannd, 1 list box
4. Masukkan kode program:
Private Sub Command1_Click()
angka = 1
While angka <= 50
List1.AddItem angka
angka = angka + 2
Wend
End Sub
5. Lalu pencet tombol play

TUGAS 4= LATIHAN

1. Buka microsft visio


2. Buka standart exe
3. Tuliskan 4 list box ,4 command, 4 frame dan jadikan (1 buah
list box,1 command.1 frame menjad1 1)
4. Masukkan kode program :
Private Sub Command1_Click()
Dim a As Integer
For a = 1 To 100
List1.AddItem (a)
Next
End Sub

Private Sub Command2_Click()


Dim b As Integer
For b = 2 To 100 Step 2
List2.AddItem (b)
Next
End Sub

Private Sub Command3_Click()


Dim c As Integer
For c = 1 To 100 Step 2
List3.AddItem (c)
Next
End Sub

Private Sub Command4_Click()


Dim d As Integer
For d = -1 To -100 Step -1
List4.AddItem (d)
Next
End Sub
5.pencet tanda play

Gambar/s
kema TUGAS 1= DO UNTIL
kerja
Langkah 1

Langkah 2
Langkah 3

TUGAS 2 = FOR ….. NEXT

Langkah 1
Langkah 2

Langkah 3

TUGAS 3 = WHILE WEND

Langkah 1

Langkah 2
Langkah 3

TUGAS 4=
Langkah 1

Langkah 2
Langkah3

Hasil
Program Hasil gamabar 1

Hasil gambar 2
Hasil gambar tugas 3
HASIL GAMBAR TUGAS 4

Batam,
2019
Guru,

_________________
NIP.
F/A/16
Rev:06