TUGAS PEMOGRAMAN

TUGAS DISKON HARGA

 

SOURCE CODE

 

1.1 Diskon proses

 

Private Sub cmdhitung_Click()

Textdi.Text = Val(textha) * 0.1

Texthi.Text = Val(textha) – Val(Textdi)

End Sub

 

Private Sub cmdquit_Click()

End

End Sub

 

Private Sub cmdulang_Click()

textha.SetFocus

textha = “”

Textdi = “”

Texthi = “”

End Sub

 

1.2 Diskon multi

 

Private Sub cmdhitung_Click()

Textdi.Text = Val(textha) * 0.1

Texthi.Text = Val(textha) – Val(Textdi)

End Sub

 

Private Sub cmdquit_Click()

End

End Sub

 

Private Sub cmdulang_Click()

textha.SetFocus

textha = “”

Textdi = “”

Texthi = “”

End Sub

 

Private Sub textha_KeyPress(KeyAscii As Integer)

If KeyAscii = 13 Then

Textdi.Text = Val(textha) * 0.1

Texthi.Text = Val(textha) – Val(Textdi)

End If

End Sub

 

SCREEN SHOOT

 

 

 

TUGAS GAJI

 

SOURCE CODE

  • Gaji proses

 

Private Sub cmdkeluar_Click()

End

End Sub

 

Private Sub cmdproses_Click()

Textgk.Text = Val(Textgp) + Val(Texttj) – Val(Textpt)

Textpj.Text = Val(Textgk) * 0.1

Textgt.Text = Val(Textgk) – Val(Textpj)

End Sub

 

Private Sub cmdulang_Click()

Textgp.SetFocus

Textgp = “”

Texttj = “”

Textpt = “”

Textgk = “”

Textpj = “”

Textgt = “”

End Sub

 

Private Sub Textgp_KeyPress(KeyAscii As Integer)

If KeyAscii = 13 Then

Texttj.SetFocus

End If

End Sub

 

Private Sub Texttj_KeyPress(KeyAscii As Integer)

If KeyAscii = 13 Then

Textpt.SetFocus

End If

End Sub

 

 

  • Gaji multi

 

Private Sub cmdkeluar_Click()

End

End Sub

 

Private Sub cmdproses_Click()

Textgk.Text = Val(Textgp) + Val(Texttj) – Val(Textpt)

Textpj.Text = Val(Textgk) * 0.1

Textgt.Text = Val(Textgk) – Val(Textpj)

End Sub

 

Private Sub cmdulang_Click()

Textgp.SetFocus

Textgp = “”

Texttj = “”

Textpt = “”

Textgk = “”

Textpj = “”

Textgt = “”

End Sub

 

Private Sub Textgp_KeyPress(KeyAscii As Integer)

If KeyAscii = 13 Then

Texttj.SetFocus

End If

End Sub

 

Private Sub Textpt_KeyPress(KeyAscii As Integer)

If KeyAscii = 13 Then

Textgk.Text = Val(Textgp) + Val(Texttj) – Val(Textpt)

Textpj.Text = Val(Textgk) * 0.1

Textgt.Text = Val(Textgk) – Val(Textpj)

End If

End Sub

 

Private Sub Texttj_KeyPress(KeyAscii As Integer)

If KeyAscii = 13 Then

Textpt.SetFocus

End If

End Sub

 

SCREEN SHOOT

 

Advertisements
Standard

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 )

Google+ photo

You are commenting using your Google+ 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 )

Connecting to %s