Hasil Uji Program Tugas Akhir
SURAT KETERANGAN
Yang bertanda tangan di bawah ini, menerangkan bahwa mahasiswa Tugas Akhir
program Diploma (D3) Teknik Informatika :
Nama Mahasiswa
: FERDY AGUSMAN
Nomor Induk Mahasiswa
: 102406197
Program Studi
: DIPLOMA (D3) TEKNIK INFORMATIKA
Judul Tugas Akhir
: PERANCANGAN PERANGKAT LUNAK
SIMULASI PALANG PINTU OTOMATIS JALAN
RAYA
Telah melaksanakan tes program Tugas Akhir mahasiswa tersebut di atas
pada tanggal:
Mei 2013
Dengan hasil : Sukses / Gagal
Demikian diterangkan untuk digunakan melengkapi syarat pendaftaran ujian
meja hijau Tugas Akhir mahasiswa bersangkutan di Departemen Matematika FMIPA
USU Medan.
Medan,
Mei 2013
Dosen Pembimbing
Program Studi D3 Teknik Informatika
KEMENTERIAN PENDIDIKAN DAN KEBUDAYAAN
UNIVERSITAS SUMATERA UTARA
FAKULTAS MATEMATIKA DAN ILMU PENGETAHUAN ALAM
Jl. Bioteknologi No. 1 Kampus USU
Telp. (061) 8214290, 8211212, 8211414 Fax. (061) 8214290 Medan 20155
No
Kartu Bimbingan Tugas Akhir Mahasiswa
Nama Mahasiswa
: Ferdy Agusman
Nomor Induk Mahasiswa
: 102406197
Program Studi
: Diploma (D3) Teknik Informatika
Judul Tugas Akhir
: Perancangan Perangkat Lunak Simulasi Palang
Pintu Otomatis Jalan Raya
Dosen Pembimbing
: Dra.Normalina ,N, M.Sc.
Tanggal Mulai Bimbingan
:
Februrari 2013
* Kartu ini harap dikembalikan ke Departemen Matematika bila bimbingan Mahasiswa telah selesai
Diketahui
Disetujui,
Departemen Matematika FMIPA USU
Pembimbing Utama/
Ketua,
Penanggung Jawab
Prof. Dr. Tulus, M.Si
Dra.Normalina ,N, M.Sc.
Script Program
Simulasi.vb
Public Class simulasi
Dim kecepatan, jarak1, jarak2, waktutunggu, jaraksensor, waktuoptimal As Double
Dim detik1, menit1, detik2, menit2 As Integer Sub mulai()
Private Sub cmdSimulasi_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdSimulasi.Click
Me.AxShockwaveFlash1.Visible = True
MsgBox("Mohon Inputkan kecepatan kereta api",
MsgBoxStyle.Critical, "Konfirmasi")
Me.cmdUlangi.Enabled = True
ElseIf Val(Txtkecepatan1.Text > 60) Or (Txtkecepatan1.Text < 40) Then
MsgBox("Kecepatan harus diantara 40-60 KM/JAM",
MsgBoxStyle.Critical, "Konfirmasi")
AxShockwaveFlash1.Movie =
Private Sub cmdUlangi_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdUlangi.Click
mulai()
Me.AxShockwaveFlash1.Stop()
Me.AxShockwaveFlash1.Movie = Nothing End Sub
Private Sub Txtkecepatan1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles
Txtkecepatan1.KeyPress
Private Sub txtjarako_TextChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles txtjarako.TextChanged
Dim txt As TextBox = DirectCast(sender, TextBox)
txt.Text = Format(CDec(Val(txt.Text)), "0.00")
Private Sub cmdsimpan_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdsimpan.Click
strsql = "INSERT INTO `datalaporan` (`kecepatan`,
`waktutunggu`, `waktuoptimal`, `jarakop`, `tgl`) VALUES ('" & Trim(Txtkecepatan1.Text) & "','" & Trim(waktutunggu) & "','" & Trim(waktuoptimal) & "','" & Trim(txtjarako.Text) & "','" &
Trim(formutama.statusbar3.Text) & "')"
comm.CommandText = strsql comm.Connection = conn comm.ExecuteNonQuery() End Sub
Private Sub simulasi_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Login.vb
Public Class Login
Dim passwordcoba As Integer
Private Sub OK_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OK.Click
salah !", MsgBoxStyle.Critical, "Error")
formutama.Show()
formutama.BringToFront() End If
End If End Sub
Private Sub Cancel_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Cancel.Click
Me.Close() End Sub
Private Sub UsernameTextBox_GotFocus(ByVal sender As Object, ByVal e As System.EventArgs) Handles UsernameTextBox.GotFocus
Me.radioadmin.Checked = True End Sub
Bantuan.vb
Public Class bantuan
Private Sub cmdSimpan_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdSimpan.Click
Me.rtfpenjelasan.SaveFile("C:\Users\dhea\Documents\Visual
Studio 2008\Projects\ferdy_102406197\ferdy_102406197\penjelasan.rtf")
MsgBox("File berhasil disimpan!", MsgBoxStyle.Information,
"Konfirmasi") End Sub
Private Sub cmdTutup_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles cmdTutup.Click
Me.Close() End Sub
Private Sub Penjelasan_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
If formutama.status0.Text = "ADMIN" Then
Me.cmdSimpan.Visible = True Else
Me.cmdSimpan.Visible = False
Me.rtfpenjelasan.Cursor = Cursors.No Me.rtfpenjelasan.ReadOnly = True End If
Me.rtfpenjelasan.LoadFile("C:\Users\dhea\Documents\Visual
Studio 2008\Projects\ferdy_102406197\ferdy_102406197\penjelasan.rtf") End Sub
Formutama.vb
Public Class formutama
Private Sub cmdkeluar_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdkeluar.Click
Me.Close() Login.Close() End Sub
Private Sub cmdbantuan_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdbantuan.Click
bantuan.Show() End Sub
Private Sub formutama_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing
Dim tanya As Integer
tanya = MsgBox("Anda yakin ingin keluar?",
MsgBoxStyle.Question + MsgBoxStyle.YesNo, "konfirmasi sistem")
If tanya = MsgBoxResult.Yes Then
Private Sub cmdtentang_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdtentang.Click
previewlaporan.Show() End Sub
Private Sub formutama_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
koneksi.koneksi() Login.Visible = False
Me.status1.Text = Format(Now, "dddd")
Me.status2.Text = Format(Now, "MM/dd/yyyy")
End Sub
Private Sub cmdsimulasi_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdsimulasi.Click
simulasi.Show() End Sub
Private Sub cmdgantipass_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdgantipass.Click
gantipass.Show() End Sub
Previewlaporan.vb
Public Class previewlaporan
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
cetaklaporan.Show() cetaklaporan.Focus() End Sub
Private Sub previewlaporan_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
'TODO: This line of code loads data into the
'TugasakhirDataSet.datalaporan' table. You can move, or remove it, as needed.
dt = New DataTable
strsql = "SELECT ID, kecepatan, waktutunggu, waktuoptimal,
jarakop, tgl FROM datalaporan"
da = New OleDb.OleDbDataAdapter(strsql, conn) da.Fill(dt)
Me.DataGridView1.DataSource = dt End Sub
Cetaklaporan.vb
jarakop, tgl FROM datalaporan"
comm.CommandText = strsql comm.Connection = conn da.SelectCommand = comm da.Fill(ds)
End Sub
Private Sub cetaklaporan_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
tampil()
namareport = "laporan1"
Dim pathreport As String = "C:\Users\dhea\Documents\Visual
Studio 2008\Projects\ferdy_102406197\ferdy_102406197" & "\" & namareport & ".rpt"
If Not IO.File.Exists(pathreport) Then
reportdoc.SetDataSource(ds.Tables(0))
ds.Clear() ds = Nothing End Sub
About.vb
Public NotInheritable Class About
Private Sub About_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
the "Application" pane of the project
' properties dialog (under the "Project" menu).
Me.LabelProductName.Text = My.Application.Info.ProductName
Me.LabelVersion.Text = String.Format("Version {0}",
My.Application.Info.Version.ToString)
Me.LabelCopyright.Text = My.Application.Info.Copyright Me.LabelCompanyName.Text = My.Application.Info.CompanyName Me.TextBoxDescription.Text = My.Application.Info.Description End Sub
Private Sub OKButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OKButton.Click
Me.Close() End Sub
Gantipass.vb
Public Class gantipass
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Me.Close() End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
If TextBox3.Text <> TextBox4.Text Then
Trim(TextBox1.Text) & "' and pwd = '" & Trim(TextBox2.Text) & "'"
da = New OleDb.OleDbDataAdapter(strsql, conn)
Trim(TextBox4.Text) & "' where nama = '" & Trim(TextBox1.Text) & "'"
MsgBox("Password berhasil diganti") Me.Close()
Else
Me.Close() End If
Else
MsgBox("Username atau Password Tidak terdaftar")
TextBox1.Focus()
TextBox1.Text = ""
TextBox2.Text = ""
TextBox3.Text = ""
TextBox4.Text = ""
Koneksi.vb
Imports System.Data.OleDb
Module koneksi
Public comm As New OleDbCommand Public conn As New OleDbConnection Public da As New OleDbDataAdapter Public ds As New DataSet
Public dt As New DataTable Public strsql As String Public namareport As String Sub koneksi()
conn.ConnectionString =
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source= C:\Users\dhea\Documents\Visual Studio
2008\Projects\ferdy_102406197\ferdy_102406197\tugasakhir.mdb"
conn.Open() End Sub