TUGAS 05

 

 

 

 

01NO 01

Private Sub cmd_proses_Click()

Dim x As String

x = Left(txt_npm.Text, 1)

If x = “E” Then

txt_kelas.Text = “Eksekutif”

txt_almamater.Text = “600000”

txtbangunan.Text = “1250000”

ElseIf x = “R” Then

txt_kelas.Text = “Reguler”

txt_almamater.Text = “600000”

txtbangunan.Text = “1250000”

End If

 

txt_tahun.Text = “20” & Mid(txt_npm.Text, 3, 2)

 

x = Mid(txt_npm.Text, 5, 1)

If x = “1” Then

txt_jurusan.Text = “Sistem Informasi”

ElseIf x = “2” Then

txt_jurusan.Text = “Managemen Informatika”

ElseIf x = “3” Then

txt_jurusan.Text = “Managemen dan Komp. Akuntansi”

End If

x = Mid(txt_npm.Text, 6, 2)

If x = “01” Then

txt_program.Text = “Strata Satu”

txt_pendaftaran.Text = “200000”

ElseIf x = “02” Then

txt_program.Text = “Diploma Tiga”

txt_pendaftaran.Text = “150000”

ElseIf x = “03” Then

txt_program.Text = “Diploma Satu”

txt_pendaftaran.Text = “150000”

 

End If

x = Left(txt_npm.Text, 1) & Mid(txt_npm.Text, 6, 2)

If x = “E” & “01” Then

txt_pendidikan.Text = “1900000”

ElseIf x = “E” & “02” Then

txt_pendidikan.Text = “1650000”

ElseIf x = “E” & “03” Then

txt_pendidikan.Text = “1350000”

ElseIf x = “R” & “01” Then

txt_pendidikan.Text = “1500000”

ElseIf x = “R” & “02” Then

txt_pendidikan.Text = “1250000”

ElseIf x = “R” & “03” Then

txt_pendidikan.Text = “1250000”

End If

txt_urut = Right(txt_npm.Text, 3)

txt_almamater.SetFocus

 

 

End Sub

Private Sub txt_almamater_keypress(keyascii As Integer)

If keyascii = 13 Then

txt_nama.SetFocus

txt_total.Text = Val(txt_pendaftaran.Text) + Val(txt_pendidikan.Text) + Val(txtbangunan.Text) + Val(txt_almamater.Text)

End If

End Sub

 

NO 02

02

Private Sub bl_Click()

t1.SetFocus

t1 = ” ”

t2 = ” ”

t3 = ” ”

t4 = ” ”

t5 = ” ”

t6 = ” ”

txtbp = ” ”

txtterbilang.Text = ” ”

End Sub

 

 

 

Private Sub t1_Keypress(Keyascii As Integer)

If Keyascii = 13 Then

t2.SetFocus

End If

End Sub

 

 

Private Sub kr_Click()

End

End Sub

 

Private Sub lg_Click()

t1.SetFocus

t1 = ” ”

t2 = ” ”

t3 = ” ”

t4 = ” ”

t5 = ” ”

t6 = ” ”

txtbp = ” ”

txtterbilang.Text = ” ”

 

End Sub

 

Private Sub ps_Click()

Dim S As String

t5.Text = “20” & Left(t2.Text, 2)

S = Mid(t2.Text, 3, 1)

If S = “1” Then

t3.Text = “Sistem Informasi”

t4.Text = “Strata Satu”

txtbp.Text = “1950000”

txtterbilang.Text = “satu juta sembilan ratus lima pulluh”

ElseIf S = “2” Then

t3.Text = “Tehnik informasi”

t4.Text = “Diploma Empat”

txtbp.Text = “1750000”

txtterbilang.Text = “satu juta tujuh ratus lima puluh”

ElseIf S = “3” Then

t3.Text = “Manajemen Informatika”

t4.Text = “Diploma tiga”

txtbp.Text = “1650000”

txtterbilang.Text = “satu juta enam ratus lima puluh”

ElseIf S = “4” Then

t3.Text = “Manajemen & Komp. Akuntansi”

t4.Text = “Diploma Dua”

txtbp.Text = “1450000”

txtterbilang.Text = “satu juta empat ratus lima puluh”

End If

 

t6.Text = Right(t2.Text, 3)

End Sub

 

NO 03

03

Private Sub cbokode_Click()

Dim merk, satuan As String

Select Case cbokode.Text

Case “Asus A43SA”

merk = “Asus A43SA-VX090D”

satuan = “5500000”

Case “Asus A43SD”

merk = “Asus A43SD-VX052D”

satuan = “4500000”

Case “Asus A43SJ”

merk = “Asus A43SJ-VX792D”

satuan = “4300000”

Case “Asus A43TA”

merk = “Asus A43TA-VX034D”

satuan = “4900000”

Case “Asus N43SL”

merk = “Asus N43SL-VX264D”

satuan = “4300000”

Case “Apple MD311”

merk = “Apple MacBook Pro MD311”

satuan = “19300000”

Case “Apple MD313”

merk = “Apple MacBook Pro MD314”

satuan = “24200000”

Case “Apple MD314”

merk = “Apple MacBook Pro MD314”

satuan = “11900000”

Case “Apple MD322”

merk = “Apple MacBook Pro MD322”

satuan = “14700000”

Case “Apple MC965”

merk = “Apple MecBook Air MC965”

satuan = “21300000”

End Select

txtmrt.Text = merk

txths.Text = satuan

txtjj.SetFocus

End Sub

 

Private Sub cmdkeluar_Click()

End

End Sub

 

Private Sub cmdlagi_Click()

cbokode.SetFocus

cbokode = “”

txtmrt = “”

txths = “”

txtjj = “”

txthp = “”

txtds = “”

txttb = “”

End Sub

 

Private Sub txtjj_KeyPress(KeyAscii As Integer)

If KeyAscii = 13 Then

txthp.SetFocus

txthp.Text = Val(txths.Text) * Val(txtjj.Text)

End If

Select Case txthp.Text

Case Is > 140000000

txtds.Text = Val(txthp.Text) * 0.15

Case Is > 135000000

txtds.Text = Val(txthp.Text) * 0.1

Case Is > 130000000

txtds.Text = Val(txthp.Text) * 0.5

Case Is > 125000000

txtds.Text = Val(txthp.Text) * 0.2

End Select

txttb.Text = Val(txthp.Text) – Val(txtds.Text)

End Sub

 

Private Sub cmdproses_Click()

txthp.Text = Val(txths.Text) * Val(txtjj.Text)

Select Case txthp.Text

Case Is > 140000000

txtds.Text = Val(txthp.Text) * 0.15

Case Is > 135000000

txtds.Text = Val(txthp.Text) * 0.1

Case Is > 130000000

txtds.Text = Val(txthp.Text) * 0.5

Case Is > 125000000

txtds.Text = Val(txthp.Text) * 0.2

End Select

txttb.Text = Val(txthp.Text) – Val(txtds.Text)

End Sub

 

Private Sub Form_Load()

cbokode.AddItem “Asus A43SA”

cbokode.AddItem “Asus A43SD”

cbokode.AddItem “Asus A43SJ”

cbokode.AddItem “Asus A43TA”

cbokode.AddItem “Asus N43SL”

cbokode.AddItem “Apple MD311”

cbokode.AddItem “Apple MD313”

cbokode.AddItem “Apple MD314”

cbokode.AddItem “Apple MD322”

cbokode.AddItem “Apple MD965”

End Sub

NO 04

04

Private Sub cmdlg_Click()

txtkb.SetFocus

txtkb.Text = “”

txtjb.Text = “”

txtp.Text = “”

txttahun.Text = “”

txtpenerbit.Text = “”

txthg.Text = “”

End Sub

 

Private Sub cmdbatal_Click()

txtkb.SetFocus

txtkb.Text = “”

txtjb.Text = “”

txtp.Text = “”

txttahun.Text = “”

txtpenerbit.Text = “”

txthg.Text = “”

End Sub

Private Sub cmdkeluar_click()

End

End Sub

 

Private Sub Cmdproses_Click()

Dim S As String

txttahun.Text = “20” & Right(txtkb.Text, 2)

S = Mid(txtkb.Text, 3, 3)

If S = “SIM” Then

txtjb.Text = “Sistem Informasi manajemen”

txtp.Text = “Andra setiawan”

ElseIf S = “EDP” Then

txtjb.Text = “elektronik data Procesing”

txtp.Text = “Desi istiqomah”

ElseIf S = “MNJ” Then

txtjb.Text = “Manajemen”

txtp.Text = “Sandi fitrajaya”

ElseIf S = “CDR” Then

txtjb.Text = “Corel Draw”

txtp.Text = “Tri indah sari”

ElseIf S = “RPL” Then

txtjb.Text = “Rekaya Perangkat Lunak ”

txtp.Text = “Ernita sari”

 

 

End If

S = Left(txtkb.Text, 1)

If S = “A” Then

txtpenerbit.Text = “Andi offset yogyakarta”

txthg.Text = “75900”

ElseIf S = “I” Then

txtpenerbit.Text = “Indah Surabaya”

txthg.Text = “62000”

ElseIf S = “S” Then

txtpenerbit.Text = “Salemba Empat”

txthg.Text = “42000”

ElseIf S = “E” Then

txtpenerbit.Text = “Elek Media Komputindo”

txthg.Text = “53000”

ElseIf S = “M” Then

txtpenerbit.Text = “Maxicom”

txthg.Text = “83000”

End If

 

End Sub

 

NO 05

05

Private Sub cmdkeluar_Click()

End

End Sub

 

Private Sub cmdlagi_Click()

txtnama.SetFocus

txtnama.Text = “”

txtnik.Text = “”

txtgol.Text = “”

txtkode.Text = “”

txtstatus.Text = “”

txttahun.Text = “”

txtbagian.Text = “”

txtjabatan.Text = “”

txtgapok.Text = “”

txttunjangan.Text = “”

txttoga.Text = “”

End Sub

 

 

Private Sub cmdproses_Click()

Dim s As String

s = Left(txtnik.Text, 4)

txttahun.Text = “2015”

s = Mid(txtnik.Text, 5, 1)

If s = “A” Then

txtgol.Text = “A”

txtjabatan.Text = “MANAJER”

txtgapok.Text = “4000000”

txttunjangan.Text = “1025000”

ElseIf s = “B” Then

txtgol.Text = “B”

txtjabatan.Text = “KA.SEKSI”

txtgapok.Text = “3500000”

txttunjangan.Text = “975000”

ElseIf s = “C” Then

txtgol.Text = “C”

txtjabatan.Text = “STAF”

txtgapok.Text = “3000000”

txttunjangan.Text = “925000”

End If

s = Mid(txtnik.Text, 7, 1)

If s = “S” Then

txtkode.Text = “S”

txtstatus.Text = “SINGLE”

ElseIf s = “M” Then

txtkode.Text = “M”

txtstatus.Text = “MENIKAH”

ElseIf s = “J” Then

txtkode.Text = “J”

txtstatus.Text = “JANDA”

ElseIf s = “D” Then

txtkode.Text = “D”

txtstatus.Text = “DUDA”

 

End If

s = Right(txtnik.Text, 3)

If s = “KEU” Then

txtbagian.Text = “ACOUNTING”

 

ElseIf s = “ADM” Then

txtbagian.Text = “Administrasi”

 

ElseIf s = “SDM” Then

txtbagian.Text = “General affair”

ElseIf s = “EDP” Then

txtbagian.Text = “IT UNIT”

 

ElseIf s = “SPM” Then

txtbagian.Text = “SECURITY”

 

 

End If

 

txttoga.Text = Val(txtgapok.Text) + Val(txttunjangan.Text)

 

End Sub

 

Private Sub cmdbatal_click()

txtnama.SetFocus

txtnama.Text = “”

txtnik.Text = “”

txtgol.Text = “”

txtkode.Text = “”

txtstatus.Text = “”

txttahun.Text = “”

txtbagian.Text = “”

txtjabatan.Text = “”

txtgapok.Text = “”

txttunjangan.Text = “”

txttoga.Text = “”

End Sub

 

 

Private Sub txtnama_KeyPress(KeyAscii As Integer)

If KeyAscii = 13 Then

txtnik.SetFocus

End If

End Sub

 

Iklan

TUGAS 04

1 dan 2TUGAS NO 1 DAN 2

Private Sub Cbonpm_Click()

Dim nama, jurusan As String

Select Case cbonpm.Text

Case “09100027”

nama = “AFNAN ZALFA SALSABILA A”

jurusan = “Sistem Informasi”

Case “09200048”

nama = “AMALIA AMANAH”

jurusan = “Manajemen Informatika”

Case “09300024”

nama = “SASKIA MECHA”

jurusan = “Tehnik Informatika”

End Select

txtnama.Text = nama

txtjurusan.Text = jurusan

txtquis.SetFocus

End Sub

 

Private Sub Form_Load()

cbonpm.AddItem “09100027”

cbonpm.AddItem “09200048”

cbonpm.AddItem “09300024”

End Sub

 

Private Sub txtquis_KeyPress(keyascii As Integer)

If keyascii = 13 Then

txttugas.SetFocus

End If

End Sub

 

Private Sub txttugas_KeyPress(keyascii As Integer)

If keyascii = 13 Then

txtuts.SetFocus

End If

End Sub

Private Sub txtuts_KeyPress(keyascii As Integer)

If keyascii = 13 Then

txtuas.SetFocus

End If

End Sub

 

 

Private Sub Cmdbatal_Click()

cbonpm.SetFocus

cbonpm.Text = “”

txtnama.Text = “”

txtjurusan.Text = “”

txtquis.Text = “”

txttugas.Text = “”

txtuts.Text = “”

txtuas.Text = “”

txtna.Text = “”

txthm.Text = “”

End Sub

 

Private Sub Cmdkeluar_Click()

Unload Me

End Sub

Private Sub Cmdproses_Click()

Dim NA As Integer

Dim HM As String

QUIS = Val(txtquis.Text)

TUGAS = Val(txttugas.Text)

UTS = Val(txtuts.Text)

UAS = Val(txtuas.Text)

NA = (QUIS + TUGAS + UTS + UAS) / 4

txtna.Text = NA

 

Select Case txtna.Text

Case Is > 80

HM = “A”

Case Is > 70

HM = “B”

Case Is > 60

HM = “C”

Case Is > 50

HM = “D”

Case Is < 50

HM = “E”

End Select

txthm.Text = HM

End Sub

Private Sub txtuas_keypress(keyascii As Integer)

If keyascii = 13 Then

Dim NA As Integer

Dim HM As String

QUIS = Val(txtquis.Text)

TUGAS = Val(txttugas.Text)

UTS = Val(txtuts.Text)

UAS = Val(txtuas.Text)

NA = (QUIS + TUGAS + UTS + UAS) / 4

txtna.Text = NA

 

Select Case txtna.Text

Case Is > 80

HM = “A”

Case Is > 70

HM = “B”

Case Is > 60

HM = “C”

Case Is > 50

HM = “D”

Case Is < 50

HM = “E”

End Select

txthm.Text = HM

End If

End Sub

 

NO 3

3NO 3

Private Sub Cmdbatal_Click()

kosong

End Sub

Private Sub cmdlagi_Click()

kosong

End Sub

 

Private Sub Form_load()

cbogolongan.AddItem “I”

cbogolongan.AddItem “II”

cbogolongan.AddItem “III”

cbogolongan.AddItem “IV”

End Sub

 

Private Sub Cmdkeluar_Click()

Unload Me

End Sub

Private Sub cbogolongan_Click()

Dim gapok, pajak, tunjangan, total As Variant

Select Case cbogolongan.Text

Case “I”

gapok = 1500000

tunjangan = 150000

Case “II”

gapok = 2000000

tunjangan = 200000

Case “III”

gapok = 2500000

tunjangan = 250000

Case “IV”

gapok = 3000000

tunjangan = 300000

Case Else

gapok = 0

tunjangan = 0

End Select

total = gapok + tunjangan

pajak = total * 0.1

txtgapok.Text = gapok

txttunjangan.Text = tunjangan

txtpajak.Text = pajak

txttotal.Text = total – pajak

End Sub

Public Sub kosong()

txtnidn.SetFocus

txtnidn.Text = “”

txtnama.Text = “”

cbogolongan.Text = “”

txtgapok.Text = “”

txttunjangan.Text = “”

txtpajak.Text = “”

txttotal.Text = “”

End Sub

 

Private Sub txtnind_keypress(Keyascii As Integer)

If Keyascii = 13 Then

txtnama.SetFocus

End If

End Sub

 

Private Sub txtnidn_Keypress(Keyascii As Integer)

If Keyascii = 13 Then

txtnama.SetFocus

End If

End Sub

 

5.1NO 4

Private Sub bl_Click()

t1.SetFocus

t1 = ” ”

t2 = ” ”

t3 = ” ”

t4 = ” ”

t5 = ” ”

t6 = ” ”

 

End Sub

 

Private Sub Form_Activate()

t1.SetFocus

t1.Text = “”

t2.Text = “”

t3.Text = “”

t4.Text = “”

t5.Text = “”

t6.Text = “”

End Sub

 

Private Sub t1_Keypress(Keyascii As Integer)

If Keyascii = 13 Then

t2.SetFocus

End If

End Sub

 

 

Private Sub kr_Click()

End

End Sub

 

Private Sub lg_Click()

t1.SetFocus

t1 = ” ”

t2 = ” ”

t3 = ” ”

t4 = ” ”

t5 = ” ”

t6 = ” ”

 

End Sub

 

Private Sub ps_Click()

Dim S As String

t5.Text = “20” & Left(t2.Text, 2)

S = Mid(t2.Text, 3, 1)

If S = “1” Then

t3.Text = “Sistem Informasi”

ElseIf S = “2” Then

t3.Text = “Manajemen Informatika”

ElseIf S = “3” Then

t3.Text = “Tehnik Informatika”

ElseIf S = “4” Then

t3.Text = “Manajemen & Komp. Akuntansi”

End If

S = Mid(t2.Text, 4, 2)

If S = “01” Then

t4.Text = “Strata Satu”

ElseIf S = “02” Then

t4.Text = “Diploma Tiga”

ElseIf S = “03” Then

t4.Text = “Diploma Empat”

ElseIf S = “04” Then

t4.Text = “Diploma Dua”

End If

 

t6.Text = Right(t2.Text, 3)

End Sub

5.2NO 5

Private Sub bl_Click()

t1.SetFocus

t1 = ” ”

t2 = ” ”

t3 = ” ”

t4 = ” ”

t5 = ” ”

t6 = ” ”

 

End Sub

 

Private Sub Form_Activate()

t1.SetFocus

t1.Text = “”

t2.Text = “”

t3.Text = “”

t4.Text = “”

t5.Text = “”

t6.Text = “”

End Sub

 

Private Sub t1_Keypress(Keyascii As Integer)

If Keyascii = 13 Then

t2.SetFocus

End If

End Sub

 

 

Private Sub kr_Click()

End

End Sub

 

Private Sub lg_Click()

t1.SetFocus

t1 = ” ”

t2 = ” ”

t3 = ” ”

t4 = ” ”

t5 = ” ”

t6 = ” ”

 

End Sub

 

Private Sub ps_Click()

Dim S As String

t5.Text = “20” & Left(t2.Text, 2)

S = Mid(t2.Text, 3, 1)

If S = “1” Then

t3.Text = “Sistem Informasi”

t4.Text = “Strata Satu”

ElseIf S = “2” Then

t3.Text = “Manajemen Informatika”

t4.Text = “Diploma Tiga”

ElseIf S = “3” Then

t3.Text = “Tehnik Informatika”

t4.Text = “Diploma Empat”

ElseIf S = “4” Then

t3.Text = “Manajemen & Komp. Akuntansi”

t4.Text = “Diploma Dua”

End If

 

t6.Text = Right(t2.Text, 3)

End Sub

06NO 6

Private Sub cmdlagi_Click()

txtkodebuku.SetFocus

txtkodebuku.Text = “”

txtjudulbuku.Text = “”

txtpengarang.Text = “”

txttahunterbit.Text = “”

txtpenerbit.Text = “”

txtharga.Text = “”

End Sub

 

Private Sub cmdbatal_Click()

txtkodebuku.SetFocus

txtkodebuku.Text = “”

txtjudulbuku.Text = “”

txtpengarang.Text = “”

txttahunterbit.Text = “”

txtpenerbit.Text = “”

txtharga.Text = “”

End Sub

Private Sub cmdkeluar_click()

End

End Sub

 

 

Private Sub Cmdproses_Click()

Dim S As String

txttahunterbit.Text = “20” & Mid(txtkodebuku.Text, 5, 2)

S = Left(txtkodebuku.Text, 3)

If S = “SIM” Then

txtjudulbuku.Text = “Sistem Informasi”

txtpengarang.Text = “Fadiya ulfa”

ElseIf S = “EDP” Then

txtjudulbuku.Text = “elektronik data Procesing”

txtpengarang.Text = “Nurul Agustina”

ElseIf S = “MNJ” Then

txtjudulbuku.Text = “Manajemen”

txtpengarang.Text = “Riyan Hidayat”

ElseIf S = “CDR” Then

txtjudulbuku.Text = “Corel Draw”

txtpengarang.Text = “Siti Nurkhotimah”

ElseIf S = “RPL” Then

txtjudulbuku.Text = “Rekaya Perangkat Lunak ”

txtpengarang.Text = “Winda erlianti”

 

 

End If

S = Mid(txtkodebuku.Text, 8, 1)

If S = “A” Then

txtpenerbit.Text = “Andi offset yogyakarta”

txtharga.Text = “75900”

ElseIf S = “I” Then

txtpenerbit.Text = “Indah Surabaya”

txtharga.Text = “62000”

ElseIf S = “S” Then

txtpenerbit.Text = “Salemba Empat”

txtharga.Text = “42000”

ElseIf S = “E” Then

txtpenerbit.Text = “Elek Media Komputindo”

txtharga.Text = “53000”

ElseIf S = “M” Then

txtpenerbit.Text = “Maxicom”

txtharga.Text = “83000”

End If

 

End Sub

07NO 7

Private Sub cmdbatal_Click()

cbokode.SetFocus

cbokode.Text = “”

txtjb.Text = “”

txtpg.Text = “”

txttt.Text = “”

txtpn.Text = “”

txth.Text = “”

End Sub

 

Private Sub cmdkeluar_Click()

End

End Sub

 

Private Sub cmdlagi_Click()

cbokode.SetFocus

cbokode.Text = “”

txtjb.Text = “”

txtpg.Text = “”

txttt.Text = “”

txtpn.Text = “”

txth.Text = “”

End Sub

 

Private Sub cmdproses_Click()

Dim s As String

txttt.Text = “20” & Right(cbokode.Text, 2)

s = Mid(cbokode.Text, 3, 3)

If s = “SIM” Then

txtjb.Text = “Sistem Informasi Manajemen”

ElseIf s = “EDP” Then

txtjb.Text = “Elektronik Data Processing”

ElseIf s = “MNJ” Then

txtjb.Text = “Manajemen”

ElseIf s = “CDR” Then

txtjb.Text = “Corel Draw”

ElseIf s = “RPL” Then

txtjb.Text = “Rekayasa Perangkat Lunak”

End If

s = Left(cbokode.Text, 1)

If s = “A” Then

txtpg.Text = “Yati Nur Oktavia”

txth.Text = “75900”

txtpn.Text = “Andi Offset Yogyakarta”

ElseIf s = “I” Then

txtpg.Text = “Imam Tarmizi”

txth.Text = “620000”

txtpn.Text = “Indah Surabaya”

ElseIf s = “S” Then

txtpg.Text = “Valentina Mariana adiwinanti”

txth.Text = “42000”

txtpn.Text = “Salemba Empat”

ElseIf s = “E” Then

txtpg.Text = “Ryan Suhandi”

txth.Text = “53000”

txtpn.Text = “Elek Media Komputindo”

ElseIf s = “M” Then

txtpg.Text = “Sinta Umpu Singa”

txth.Text = “83000”

txtpn.Text = “Maxicom”

End If

txth.SetFocus

End Sub

 

Private Sub Form_Load()

cbokode.AddItem “A-SIM-01”

cbokode.AddItem “I-EDP-02”

cbokode.AddItem “S-MNJ-03”

cbokode.AddItem “E-CDR-04”

cbokode.AddItem “M-RPL-05”

End Sub

8NO 8

Private Sub cmdhitunglagi_Click()

cbokodekomputer.SetFocus

cbokodekomputer.Text = “”

txtjeniskomputer.Text = “”

txthargasatuan.Text = “”

txtjumlahjual.Text = “”

txthargapenjualan.Text = “”

txtdiskon.Text = “”

txthargabayar.Text = “”

End Sub

 

Private Sub Cmdclose_Click()

Unload Me

End Sub

 

Private Sub cboclose_Click()

Unload Me

End Sub

Private Sub cbohitunglagi_Click()

cbokodekomputer.SetFocus

cbokodekomputer.Text = “”

txtjeniskomputer.Text = “”

txthargasatuan.Text = “”

txtjumlahjual.Text = “”

txthargapenjualan.Text = “”

txtdiskon.Text = “”

txthargabayar.Text = “”

End Sub

 

Private Sub Cbokodekomputer_Click()

Dim jeniskomputer, hargasatuan As String

Select Case cbokodekomputer.Text

Case “P205”

jeniskomputer = “Pentium II 500 Mega Hz”

hargasatuan = “1500000”

Case “P308”

jeniskomputer = “Pentium III 800 Mega Hz”

hargasatuan = “2100000”

Case “P310”

jeniskomputer = “Pentium III 1 Giga Hz”

hargasatuan = “3500000”

Case “P415”

jeniskomputer = “Pentium IV 1.5 Giga Hz”

hargasatuan = “4000000”

Case “P417”

jeniskomputer = “Pentium IV 1.7 Giga Hz”

hargasatuan = “4200000”

Case “P419”

jeniskomputer = “Pentium IV 1.9 Giga Hz”

hargasatuan = “5500000”

End Select

txtjeniskomputer.Text = jeniskomputer

txthargasatuan.Text = hargasatuan

txtjumlahjual.SetFocus

End Sub

 

Private Sub cmdproses_Click()

txthargabayar = Val(txthargapenjualan.Text) – Val(txtdiskon.Text)

End Sub

 

Private Sub Form_Load()

cbokodekomputer.AddItem “P205”

cbokodekomputer.AddItem “P308”

cbokodekomputer.AddItem “P310”

cbokodekomputer.AddItem “P415”

cbokodekomputer.AddItem “P417”

cbokodekomputer.AddItem “P419”

End Sub

Private Sub txthargapenjualan_keypress(KeyAscii As Integer)

If KeyAscii = 13 Then

txthargapenjualan = Val(txthargasatuan.Text) * Val(txtjumlahjual.Text)

End If

txthargapenjualan.Text = txthargapenjualan

Select Case txthargapenjualan.Text

Case Is > 30000000

txtdiskon = 0.15 * Val(txthargapenjualan.Text)

Case Is > 25000000

txtdiskon = 0.1 * (txthargapenjualan.Text)

Case Is > 20000000

txtdiskon = 0.05 * (txthargapenjualan.Text)

Case Is >= 15000000

txtdiskon = 0.02 * (txthargapenjualan.Text)

End Select

End Sub

Private Sub txthargasatuan_KeyPress(KeyAscii As Integer)

txtjumlahjual.SetFocus

End Sub

 

Private Sub txtjumlahjual_KeyPress(KeyAscii As Integer)

If KeyAscii = 13 Then

txthargapenjualan = Val(txthargasatuan.Text) * Val(txtjumlahjual.Text)

txthargapenjualan.SetFocus

End If

End Sub

9NO 9

Private Sub cbokode_Click()

Dim merk, satuan As String

Select Case cbokode.Text

Case “Apple MC965 MacBook Air”

merk = “Apple MacBook Air MC965”

satuan = “12800000”

Case “Apple MC966 MacBook Air”

merk = “Apple MacBook Air MC966”

satuan = “15800000”

Case “Apple MC968 MacBook Air”

merk = “Apple MacBook Air MC968”

satuan = “9900000”

Case “Apple MC969 MacBook Air”

merk = “Apple MacBook Air MC969”

satuan = “11900000”

Case “Apple MC700 MacBook Pro”

merk = “Apple MacBook Pro MC700”

satuan = “10800000”

Case “Apple MC721 MacBook Pro”

merk = “Apple MacBook Pro MC721”

satuan = “15900000”

Case “Apple MC723 MacBook Pro”

merk = “Apple MacBook Pro MC723”

satuan = “19300000”

Case “Apple MC724 MacBook Pro”

merk = “Apple MacBook Pro MC724”

satuan = “13700000”

Case “Apple MC311 MacBook Pro”

merk = “Apple MacBook Pro MC311”

satuan = “24200000”

Case “Apple MC313 MacBook Pro”

merk = “Apple MacBook Pro MC313”

satuan = “11900000”

Case “Apple MC314 MacBook Pro”

merk = “Apple MacBook Pro MC314”

satuan = “14700000”

Case “Apple MC318 MacBook Pro”

merk = “Apple MacBook Pro MC318”

satuan = “17600000”

Case “Apple MC322 MacBook Pro”

merk = “Apple MacBook Pro MC322”

satuan = “21300000”

Case “Apple MC965 MacBook Air”

merk = “Apple MacBook Air MC965”

satuan = “12800000”

Case “Apple MC966 MacBook Air”

merk = “Apple MacBook Air MC966”

satuan = “15800000”

End Select

txtmrt.Text = merk

txths.Text = satuan

txtjj.SetFocus

End Sub

 

Private Sub cmdkeluar_Click()

End

End Sub

 

Private Sub cmdlagi_Click()

cbokode.SetFocus

txtmrt = “”

txths = “”

txtjj = “”

txthp = “”

txtds = “”

txttb = “”

End Sub

 

Private Sub txtjj_KeyPress(KeyAscii As Integer)

If KeyAscii = 13 Then

txthp.SetFocus

txthp.Text = Val(txths.Text) * Val(txtjj.Text)

End If

Select Case txthp.Text

Case Is > 140000000

txtds.Text = Val(txthp.Text) * 0.15

Case Is > 135000000

txtds.Text = Val(txthp.Text) * 0.1

Case Is > 130000000

txtds.Text = Val(txthp.Text) * 0.5

Case Is > 125000000

txtds.Text = Val(txthp.Text) * 0.2

End Select

txttb.Text = Val(txthp.Text) – Val(txtds.Text)

End Sub

 

Private Sub cmdproses_Click()

txthp.Text = Val(txths.Text) * Val(txtjj.Text)

Select Case txthp.Text

Case Is > 140000000

txtds.Text = Val(txthp.Text) * 0.15

Case Is > 135000000

txtds.Text = Val(txthp.Text) * 0.1

Case Is > 130000000

txtds.Text = Val(txthp.Text) * 0.5

Case Is > 125000000

txtds.Text = Val(txthp.Text) * 0.2

End Select

txttb.Text = Val(txthp.Text) – Val(txtds.Text)

End Sub

 

Private Sub Form_Load()

cbokode.AddItem “Apple MC965 MacBook Air”

cbokode.AddItem “Apple MC966 MacBook Air”

cbokode.AddItem “Apple MC968 MacBook Air”

cbokode.AddItem “Apple MC969 MacBook Air”

cbokode.AddItem “Apple MC700 MacBook Pro”

cbokode.AddItem “Apple MC721 MacBook Pro”

cbokode.AddItem “Apple MC723 MacBook Pro”

cbokode.AddItem “Apple MC724 MacBook Pro”

cbokode.AddItem “Apple MC311 MacBook Pro”

cbokode.AddItem “Apple MC313 MacBook Pro”

cbokode.AddItem “Apple MC314 MacBook Pro”

cbokode.AddItem “Apple MC318 MacBook Pro”

cbokode.AddItem “Apple MC322 MacBook Pro”

cbokode.AddItem “Apple MC965 MacBook Air”

cbokode.AddItem “Apple MC966 MacBook Air”

End Sub

10NO 10

Private Sub cmdproses_click()

Dim S As String

S = (txtkt.Text)

If S = “MUT2212” Then

txtht.Text = “23000”

txtjk.Text = “MUTIARA”

txtjb.Text = “17.00”

txtjt.SetFocus

ElseIf S = “BIM2212” Then

txtht.Text = “50000”

txtjk.Text = “BIMA”

txtjb.Text = “16.00”

txtjt.SetFocus

ElseIf S = “EKO2212” Then

txtht.Text = “35000”

txtjk.Text = “EKONOMI”

txtjb.Text = “19.00”

txtjt.SetFocus

ElseIf S = “SEN2212” Then

txtht.Text = “75000”

txtjk.Text = “SENJA”

txtjb.Text = “20.00”

txtjt.SetFocus

End If

End Sub

 

 

 

 

Private Sub Form_Load()

 

End Sub

 

Private Sub txtjt_keypress(keyascii As Integer)

If keyascii = 13 Then

Dim A, B, C As Single

A = txtht.Text

B = txtjt.Text

C = B * A

txttp.Text = C

End If

 

End Sub

 

Private Sub Cmdlagi_Click()

txtkt.SetFocus

txtkt.Text = “”

txtht.Text = “”

txtjk.Text = “”

txtjb.Text = “”

txtjt.Text = “”

txttp.Text = “”

 

End Sub

Private Sub cmdkeluar_click()

End

End Sub

 

TUGAS 03

ryan a

Private Sub Cmdkl_Click()

End

End Sub

 

Private Sub Cmdpr_Click()

Txtgk.Text = Val(Txtgp) + Val(Txttj) – Val(Txtpt)

Txtpot.Text = Val(Txtgk) * 0.1

Txtgb.Text = Val(Txtgk) – Val(Txtpot)

End Sub

 

Private Sub Cmdul_Click()

Txtgp.SetFocus

Txtgp = ” ”

Txttj = ” ”

Txtpt = ” ”

Txtgk = ” ”

Txtpot = ” ”

Txtgb = ” ”

End Sub

 

 

Private Sub Txtgp_KeyPress(KeyAscii As Integer)

If KeyAscii = 13 Then

Txttj.SetFocus

End If

End Sub

 

 

Private Sub Txtpt_KeyPress(KeyAscii As Integer)

If KeyAscii = 13 Then

Txtgk.Text = Val(Txtgp) + Val(Txttj) – Val(Txtpt)

Txtpot.Text = Val(Txtgk) * 0.1

Txtgb.Text = Val(Txtgk) – Val(Txtpot)

End If

End Sub

 

Private Sub Txttj_KeyPress(KeyAscii As Integer)

If KeyAscii = 13 Then

Txtpt.SetFocus

End If

End Sub

 

ab ryan

Private Sub Chkbold_Click(index As Integer)

If Chkbold.Count = 1 Then

Lbltext.FontBold = True

Else

Lbltext.FontBold = False

End If

End Sub

 

 

 

Private Sub Chkitalic_Click(index As Integer)

If Chkitalic.Count = 1 Then

Lbltext.FontItalic = True

Else

Lbltext.FontItalic = False

End If

End Sub

 

Private Sub Chkstrikethru_Click()

If Chkstrikethru.Value = 1 Then

Lbltext.FontStrikethru = True

Else

Lbltext.FontStrikethru = False

End If

End Sub

 

Private Sub Chkunderline_Click()

If Chkunderline.Value = 1 Then

Lbltext.FontUnderline = True

Else

Lbltext.FontUnderline = False

End If

End Sub

 

 

Private Sub Cmdexit_Click()

End

End Sub

 

 

 

Private Sub Optblue_Click()

Lbltext.ForeColor = vbBlue

End Sub

 

Private Sub Optgreen_Click()

Lbltext.ForeColor = vbGreen

End Sub

 

Private Sub Optred_Click()

Lbltext.ForeColor = vbRed

End Sub

 

Private Sub Optyellow_Click()

Lbltext.ForeColor = vbYellow

End Sub

 

ryan no 3

Private Sub Chkgb_Click()

If Chkgb.Value = 1 Then

Label2.FontUnderline = True

Else

Label2.FontUnderline = False

End If

End Sub

 

 

Private Sub Chkgt_Click()

If Chkgt.Value = 1 Then

Label2.FontStrikethru = True

Else

Label2.FontStrikethru = False

End If

End Sub

 

Private Sub Chkmiring_Click()

If Chkmiring.Value = 1 Then

Label2.FontItalic = True

Else

Label2.FontItalic = False

End If

End Sub

 

 

Private Sub Chktebal_Click()

If Chktebal.Value = 1 Then

Label2.FontBold = True

Else

Label2.FontBold = False

End If

End Sub

 

 

Private Sub Cmd1_Click()

Label2.Caption = Text1.Text

End Sub

 

Private Sub Cmd2_Click()

End

End Sub

 

Private Sub Optbiru_Click()

Label2.ForeColor = vbBlue

End Sub

 

Private Sub Opthijau_Click()

Label2.ForeColor = vbGreen

End Sub

 

Private Sub Optkuning_Click()

Label2.ForeColor = vbYellow

End Sub

 

Private Sub Optmerah_Click()

Label2.ForeColor = vbRed

End Sub

tugas 2

nmer1

Private Sub Cmdbt_Click()

Textkb.SetFocus

Textkb = ” ”

Textnb = ” ”

Textnpm = ” ”

Textnp = ” ”

Texttt = ” ”

End Sub

 

Private Sub Cmdkr_Click()

End

End Sub

 

Private Sub Cmdlg_Click()

Textkb.SetFocus

Textkb = ” ”

Textnb = ” ”

Textnpm = ” ”

Textnp = ” ”

Texttt = ” ”

End Sub

 

Private Sub Textkb_KeyPress(KeyAscii As Integer)

If KeyAscii = 13 Then

Textnb.SetFocus

End If

End Sub

Private Sub Textnb_KeyPress(KeyAscii As Integer)

If KeyAscii = 13 Then

Textnpm.SetFocus

End If

End Sub

Private Sub Textnp_KeyPress(KeyAscii As Integer)

If KeyAscii = 13 Then

Texttt.SetFocus

End If

End Sub

 

Private Sub Textnpm_KeyPress(KeyAscii As Integer)

If KeyAscii = 13 Then

Textnp.SetFocus

End If

End Sub

nmer2 nmer4

Private Sub Cmdbh_Click()

Text1.SetFocus

Text1.Text = “”

Text2.Text = “”

Text3.Text = “”

 

End Sub

 

Private Sub Cmdht_Click()

Dim A, B, C As Single

A = Text1.Text

B = Text2.Text

C = A * B

Text3.Text = C

 

End Sub

 

Private Sub Cmdkr_Click()

Unload Me

End Sub

 

Private Sub Text1_KeyPress(KeyAscii As Integer)

If KeyAscii = 13 Then

Text2.SetFocus

End If

 

End Sub

 

 

Private Sub Text2_KeyPress(KeyAscii As Integer)

If KeyAscii = 13 Then

Dim A, B, C As Single

A = Text1.Text

B = Text2.Text

C = A * B

Text3.Text = C

End If

 

End Sub

 

 

nmer4

Private Sub Cmd1_Click()

Dim A, B, C As Double

txti.Text = Val(txtR.Text) * 0.1

txtz.Text = Val(txtR.Text) – Val(txti.Text)

End Sub

 

Private Sub Cmd2_Click()

txtR.Text = “”

txti.Text = “”

txtz.Text = “”

End Sub

 

Private Sub Cmd3_Click()

End

End Sub

berita terbaru

  • Minggu, 7 Desember 2014 | 11:20 WIB

    Di Monas, Ahok Bintangnya…

    Ibu-ibu yang mengikuti acara tersebut menyerbu Gubernur DKI Jakarta Basuki “Ahok” Tjahaja Purnama yang baru turun dari panggung usai memberi sambutan.

  • images 2
    Minggu, 7 Desember 2014 | 10:57 WIB

    Ahok dan “Kerajinan” Minum Susu

    Cara Gubernur DKI Jakarta Basuki Tjahaja Purnama mengajak warganya untuk rajin minum susu mengundang tawa. Dia menceritakan bagaimana rajinnya dia minum susu.

  • images 2
    Sabtu, 6 Desember 2014 | 05:54 WIB

    Ahok Serukan Remaja Jakarta Ramaikan Masjid

    Ia menyatakan prihatin pada gaya hidup anak-anak muda Jakarta yang ia nilai sibuk pada perkembangan teknologi hingga membuat mereka lupa bersosialisasi.

  • images 2
    Jumat, 5 Desember 2014 | 17:14 WIB

    Pemuda Masjid: Dukung Kepemimpinan Ahok!

    “Jadi kepada ormas, lebih baik saat ini kita bersatu, bagaimana seharusnya kita memberi masukan yang baik untuk program-program pemberdayaan umat Islam di DKI. Kalau ada hal-hal yang tidak berkenan, kita bisa sampaikan melalui DPRD, sampaikanlah ke wakil

  • images 2
    Jumat, 5 Desember 2014 | 17:00 WIB

    Remaja Masjid Dukung Ahok Pimpin DKI, asalkan…

    Badan Komunikasi Pemuda dan Remaja Masjid Indonesia (BKPRMI) menyatakan mendukung kepemimpinan Gubernur DKI Jakarta Basuki “Ahok” Tjahaja Purnama, Jumat (5/12/2014). Keyakinan Basuki disebut bukan persoalan, selama….

  • images 2
    Jumat, 5 Desember 2014 | 15:32 WIB

    Ahok Sebar Intel Awasi Bantuan Renovasi Masjid

    Gubernur DKI Jakarta Basuki Tjahaja Purnama menginstruksikan dan menyebar “intel” dari Biro Dikmental DKI serta Bakesbangpol DKI Jakarta untuk menunaikan salat Jumat di masjid-masjid yang berbeda.

  • images 2
    Jumat, 5 Desember 2014 | 12:04 WIB

    Sudah Diperkenalkan sebagai Wagub, Djarot Akan Tempati Ruang Kerja Ahok

    Setelah melakukan pertemuan tertutup bersama Gubernur DKI Jakarta Basuki Tjahaja Purnama selama lebih kurang 30 menit, calon wakil gubernur DKI Jakarta yang diusung Partai Demokrasi Indonesia Perjuangan (PDI-P) Djarot Saiful Hidayat keluar bersama Sekreta

  • images 2
    Jumat, 5 Desember 2014 | 11:37 WIB

    Ahok: Jangan Lagi Ada Santunan Duafa, Itu Bansos Tidak Jelas!

    Gubernur DKI Jakarta Basuki Tjahaja Purnama (Ahok) menegaskan, pihaknya tidak akan lagi menyalurkan santunan kepada kaum duafa, janda, dan lainnya.

  • images 2
    Jumat, 5 Desember 2014 | 11:09 WIB

    “Pak Ahok, Pak Djarot Menunggu”

    Calon wakil gubernur DKI Jakarta Djarot Saiful Hidayat datang ke Balaikota Jakarta untuk menemui Gubernur Basuki Tjahaja Purnama (Ahok), Jumat (5/12/2014).

  • images 2
    Jumat, 5 Desember 2014 | 10:21 WIB

    Ingin Jakarta Jadi “Smart City”, Ahok Ingin Warga Pakai “Smartphone”

    Menurut Ahok, penggunaan smartphone memang memegang peranan penting untuk mewujudkan konsep smart city.

  • images 2
    Jumat, 5 Desember 2014 | 09:20 WIB

    Apa Kabar “One Day No Car” Warisan Jokowi?

    Di lokasi parkir Balaikota tampak banyak PNS yang tiba dengan mengendarai sepeda motor, baik motor pribadi maupun dinas. Di pintu masuk area parkir pun tidak ada lagi papan peringatan seperti sebelumnya.

  • images 2
    Jumat, 5 Desember 2014 | 08:45 WIB

    Ini Inspirasi Ahok untuk Siap Mati demi Rakyat

    Inspirasi itu adalah Presiden ke-16 Amerika Serikat, Abraham Lincoln. Ahok juga kerap mengutip pernyataan Lincoln terkait uji karakter seseorang dengan pemberian kekuasaan.

  • images 2
    Kamis, 4 Desember 2014 | 13:57 WIB

    “Gaji Terendah PNS Pajak Rp 25 Juta, tetapi Kelakuan Minor”

    Gaji pegawai negeri sipil (PNS) di Dinas Pajak DKI Jakarta disebut hingga mencapai Rp 25 juta. Namun, kata Gubernur DKI Jakarta Basuki Tjahaja Purnama, kinerja mereka masih jauh dari memuaskan.

  • images 2
    Kamis, 4 Desember 2014 | 13:51 WIB

    Tinggalkan “Seabrek” Pekerjaan di Balaikota, Ahok Rayakan Ultah Istri

    Serangkaian pekerjaan dan rapat yang dijalani Gubernur DKI Jakarta Basuki “Ahok” Tjahaja Purnama, Kamis (4/12/2014) ini, ternyata tak membuatnya lupa untuk merayakan ulang tahun sang istri, Veronica Tan.

  • images 2
    Kamis, 4 Desember 2014 | 13:17 WIB

    Ahok Ingin Djarot Urus Minimarket dan Kemacetan Jakarta

    Gubernur DKI Jakarta Basuki Tjahaja Purnama ingin Djarot segera mengerjakan pekerjaan rumah (PR) DKI Jakarta yang sudah menumpuk untuk segera diselesaikan.