TUGAS TIPE F

FEBRI F

Private Sub cbokode_Click()

Dim MT, HS, JJ, HP, DIS, TP As String

cbokode = Right(cbokode, 5)

 

Select Case cbokode

Case “A43SA”

MT = “Asus A43SA-VX090D”

HS = “5.500.000”

Case “A43SD”

MT = “Asus A43SD-VX052D”

HS = “4.500.000”

Case “A43SJ”

MT = “Asus A43SJ-VX792D”

HS = “4.300.000”

Case “A43TA”

MT = “Asus A43TA-VX034D”

HS = “4.900.000”

Case “N43SL”

MT = “Asus N43SL-VX264D”

HS = “4.300.000”

Case “MD311”

MT = “Apple MacBook Pro MD311”

HS = “19.300.000”

Case “MD313”

MT = “Apple MacBook Pro MD313”

HS = “24.200.000”

Case “MD314”

MT = “Apple MacBook Pro MD314”

HS = “11.900.000”

Case “MD322”

MT = “Apple MacBook Pro MD322”

HS = “14.700.000”

Case “MC965”

MT = “Apple MacBook Air MC965”

HS = “21.300.000”

End Select

cbokode.Text = (cbokode.Text)

txtjj.SetFocus

txtmerk = MT

txths = HS

txtjj = JJ

txthp = HP

txtdis = DIS

txttp = TP

 

End Sub

 

Private Sub cmdkeluar_Click()

Unload Me

End Sub

 

Private Sub cmdlagi_Click()

cbokode = “(pilih kode)”

txtmerk = “”

txths = “”

txtjj = “”

txthp = “”

txtdis = “”

txttp = “”

 

End Sub

 

Private Sub cmdproses_Click()

txthp = txths * txtjj

If txthp > 140000000 Then

txtdis = txthp * 0.15

txttp = txthp – txtdis

txtprs = “15%”

ElseIf txthp > 135000000 Then

txtdis = txthp * 0.1

txttp = txthp – txtdis

txtprs = “10%”

ElseIf txthp > 130000000 Then

txtdis = txthp * 0.05

txttp = txthp – txtdis

txtprs = “5%”

ElseIf txthp > 125000000 Then

txtdis = txthp * 0.02

txttp = txthp – txtdis

txtprs = “2%”

ElseIf txthp > 0 Then

txtdis = txthp * 0

txttp = txthp – txtdis

txtprs = “0%”

End If

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 MC965”

 

End Sub

Iklan

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout /  Ubah )

Foto Google

You are commenting using your Google account. Logout /  Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout /  Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout /  Ubah )

Connecting to %s