Rabu, 21 Januari 2015

Program Database Menggunakan VB6

Listing Program

Private Sub Command1_Click()
Dim a As Integer
Dim b As Integer
Dim c As Integer

a = Text3.Text
b = Text4.Text
c = (a * 70 / 100) + (b * 30 / 100)

If c >= 80 Then
Text5.Text = "A"
ElseIf c >= 60 Then
Text5.Text = "B"
ElseIf c >= 40 Then
Text5.Text = "C"
ElseIf c >= 20 Then
Text5.Text = "D"
ElseIf c >= 0 Then
Text5.Text = "E"
Else
Text5.Text = "error"

End If

Adodc1.Recordset.AddNew
Adodc1.Recordset.Fields("Nama") = Text1.Text
Adodc1.Recordset.Fields("Mata_kuliah") = Text2.Text
Adodc1.Recordset.Fields("Nilai_UTS") = Text3.Text
Adodc1.Recordset.Fields("Nilai_UAS") = Text4.Text
Adodc1.Recordset.Fields("Grade") = Text5.Text
Adodc1.Recordset.Update

End Sub

Private Sub Command2_Click()
Adodc1.Recordset.Delete
End Sub

Private Sub Command3_Click()
Text1.Text = " "
Text2.Text = " "
Text3.Text = " "
Text4.Text = " "
Text5.Text = " "
End Sub


Private Sub Command4_Click()
End
End Sub


Logika/Penjelasan Listing

Dim a As Integer
Dim b As Integer
Dim c As Integer

Blok diatas adalah logika untuk memasukan variable berbentuk integer
If c >= 80 Then
Text5.Text = "A"
ElseIf c >= 60 Then
Text5.Text = "B"
ElseIf c >= 40 Then
Text5.Text = "C"
ElseIf c >= 20 Then
Text5.Text = "D"
ElseIf c >= 0 Then
Text5.Text = "E"
Else
Text5.Text = "error"

Blok diatas adalah bentuk pecabangan dari visual basic
Adodc1.Recordset.Delete
Blok diatas adalah untuk menghapus record pada datagrid

Text1.Text = " "
Text2.Text = " "
Text3.Text = " "
Text4.Text = " "
Text5.Text = " "

Blok diatas adalah untuk mengosongkan textbox yang telah kita isi











Senin, 05 Januari 2015

MINI GAMES TIC TAC TOE

Tugas Softskill Mata Kuliah Pengantar Teknologi Internet & New Media Membuat Program Sederhana New Media


       untuk kali ini kami membuat sebuah mini game yang disebut dengan TIC TAC TOE  pada tahap awal pengembangan game ini , game di mainkan secara offline dengan menggunakan PC berbasis Windows , insyallah pada pengembangan selanjutnya kami akan membuat game ini bisa dimainkan secara online dan bisa menggunakan mobile platform 

Berikut video penjelasannya beserta file game yang telah kami buat silahkan di download 



Jika video bermasalah bisa direct langsung : VIDEO ON YOUTUBE


FILE DOWNLOAD : https://www.dropbox.com/s/caomwot9abcx9p2/softskill.exe?dl=0

program dan video dikerjakan bersama oleh :
  •  Rizki ade putra
  • Lutfhi Ridhoni Fauzi
  • Ilham Deny Darmawan