reservasi hotel
DESCRIPTION
TRANSCRIPT
![Page 1: Reservasi hotel](https://reader033.vdocuments.us/reader033/viewer/2022061221/54be8b2b4a7959fc738b46b0/html5/thumbnails/1.jpg)
HOTEL CORE BEE
DIAN PURWANTO(100533406901)
………………..…………………
……………………
KELOMPOK 6
![Page 2: Reservasi hotel](https://reader033.vdocuments.us/reader033/viewer/2022061221/54be8b2b4a7959fc738b46b0/html5/thumbnails/2.jpg)
Flowchart
![Page 3: Reservasi hotel](https://reader033.vdocuments.us/reader033/viewer/2022061221/54be8b2b4a7959fc738b46b0/html5/thumbnails/3.jpg)
Lanjutan
![Page 4: Reservasi hotel](https://reader033.vdocuments.us/reader033/viewer/2022061221/54be8b2b4a7959fc738b46b0/html5/thumbnails/4.jpg)
Listing ProgramOption Strict OffPublic Class Form1 Inherits System.Windows.Forms.Form
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim harga, harga_bayar, total_bayar, diskon, korting As Integer Dim a As Date = DateTimePicker1.Value Dim b As Date = DateTimePicker2.Value 'karena hari dimana dimulai dan diakhiri transaksi dihitung 1 hari Dim lama As Int32 = b.DayOfYear - a.DayOfYear + 1 Dim nm_kamar As String
If TextBox1.Text = "" Then MessageBox.Show("Anda Belum Memasukkan Nama Pengunjung", "Peringatan", MessageBoxButtons.OK, MessageBoxIcon.Warning) TextBox1.Focus()
![Page 5: Reservasi hotel](https://reader033.vdocuments.us/reader033/viewer/2022061221/54be8b2b4a7959fc738b46b0/html5/thumbnails/5.jpg)
Lanjutan ElseIf ComboBox1.Text = "" Then MessageBox.Show("Anda Belum Memilih kamar", "Peringatan", MessageBoxButtons.OK, MessageBoxIcon.Warning) ComboBox1.Focus() ElseIf ComboBox2.Text = "" Then MessageBox.Show("Anda Belum Memilih No. kamar", "Peringatan", MessageBoxButtons.OK, MessageBoxIcon.Warning) ComboBox1.Text = "" ComboBox2.Focus() ElseIf DateTimePicker2.Value <= Now Then MessageBox.Show("Anda Belum Memasukkan tanggal CekOut", "Peringatan", MessageBoxButtons.OK, MessageBoxIcon.Warning) DateTimePicker2.Focus() End If
If ComboBox1.Text = "Mawar" Then nm_kamar = "Mawar" TextBox2.Text = "Rp. 200.000,-" harga = 200000 ElseIf ComboBox1.Text = "Melati" Then
![Page 6: Reservasi hotel](https://reader033.vdocuments.us/reader033/viewer/2022061221/54be8b2b4a7959fc738b46b0/html5/thumbnails/6.jpg)
Lanjutannm_kamar = "Melati" TextBox2.Text = "Rp. 150.000,-" harga = 150000 ElseIf ComboBox1.Text = "Cempaka" Then nm_kamar = "Cempaka" TextBox2.Text = "Rp. 100.000,-" harga = 100000 End If
If (lama >= 10) Then korting = 75 diskon = harga * (korting / 100) harga_bayar = lama * harga total_bayar = ((lama - 1) * harga) + diskon TextBox5.Text = "75" ElseIf (lama >= 7) Then korting = 50 diskon = harga * (korting / 100) harga_bayar = lama * harga total_bayar = ((lama - 1) * harga) + diskon TextBox5.Text = "50" ElseIf (lama >= 5) Then korting = 35
![Page 7: Reservasi hotel](https://reader033.vdocuments.us/reader033/viewer/2022061221/54be8b2b4a7959fc738b46b0/html5/thumbnails/7.jpg)
Lanjutan diskon = harga * (korting / 100) harga_bayar = lama * harga total_bayar = ((lama - 1) * harga) + diskon TextBox5.Text = "35" ElseIf (lama >= 3) Then korting = 20 diskon = harga * (korting / 100) harga_bayar = lama * harga total_bayar = ((lama - 1) * harga) + diskon TextBox5.Text = "20" Else diskon = 0 harga_bayar = lama * harga total_bayar = harga_bayar + diskon TextBox5.Text = "0"
End If TextBox4.Text = "Rp. " & harga_bayar TextBox6.Text = "Rp. " & total_bayar ListBox1.Items.Add(TextBox1.Text) ListBox2.Items.Add(DateTimePicker1.Value.Date) ListBox3.Items.Add(DateTimePicker2.Value.Date)
![Page 8: Reservasi hotel](https://reader033.vdocuments.us/reader033/viewer/2022061221/54be8b2b4a7959fc738b46b0/html5/thumbnails/8.jpg)
ListBox4.Items.Add(ComboBox1.Text) ListBox5.Items.Add(ComboBox2.Text) ListBox6.Items.Add("Rp. " & total_bayar)
End Sub
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load 'menyembunyikan salam pembuka SplashScreen.Hide() TextBox1.Focus() TextBox2.Enabled = False TextBox4.Enabled = False TextBox5.Enabled = False TextBox6.Enabled = False ListBox1.Enabled = False ListBox2.Enabled = False ListBox3.Enabled = False ListBox4.Enabled = False ListBox5.Enabled = False
Lanjutan
![Page 9: Reservasi hotel](https://reader033.vdocuments.us/reader033/viewer/2022061221/54be8b2b4a7959fc738b46b0/html5/thumbnails/9.jpg)
ListBox6.Enabled = False
With ComboBox1 .Items.Add("Mawar") .Items.Add("Melati") .Items.Add("Cempaka")
End With With ComboBox2 .Items.Add("1") .Items.Add("2") .Items.Add("3") .Items.Add("4") .Items.Add("5") .Items.Add("6") .Items.Add("7") .Items.Add("8") .Items.Add("9") .Items.Add("10") End With
Lanjutan
![Page 10: Reservasi hotel](https://reader033.vdocuments.us/reader033/viewer/2022061221/54be8b2b4a7959fc738b46b0/html5/thumbnails/10.jpg)
ListBox7.Items.Add("Nama") ListBox8.Items.Add("Masuk") ListBox9.Items.Add("Keluar") ListBox10.Items.Add("Type") ListBox11.Items.Add("No") ListBox12.Items.Add("Total Bayar")
End Sub
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click 'keluar End 'menutup pembuka SplashScreen.Close() End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click AboutBox1.Show() End Sub
Lanjutan
![Page 11: Reservasi hotel](https://reader033.vdocuments.us/reader033/viewer/2022061221/54be8b2b4a7959fc738b46b0/html5/thumbnails/11.jpg)
Private Sub Clear_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Clear.Click TextBox1.Clear() TextBox2.Clear() TextBox4.Clear() TextBox5.Clear() TextBox6.Clear() DateTimePicker2.Value = Now ComboBox1.Text = "" ComboBox2.Text = "" End SubEnd Class
Lanjutan
![Page 12: Reservasi hotel](https://reader033.vdocuments.us/reader033/viewer/2022061221/54be8b2b4a7959fc738b46b0/html5/thumbnails/12.jpg)
SplashScreen
![Page 13: Reservasi hotel](https://reader033.vdocuments.us/reader033/viewer/2022061221/54be8b2b4a7959fc738b46b0/html5/thumbnails/13.jpg)
Exception
![Page 14: Reservasi hotel](https://reader033.vdocuments.us/reader033/viewer/2022061221/54be8b2b4a7959fc738b46b0/html5/thumbnails/14.jpg)
Diskon 0%
![Page 15: Reservasi hotel](https://reader033.vdocuments.us/reader033/viewer/2022061221/54be8b2b4a7959fc738b46b0/html5/thumbnails/15.jpg)
Diskon 20%
![Page 16: Reservasi hotel](https://reader033.vdocuments.us/reader033/viewer/2022061221/54be8b2b4a7959fc738b46b0/html5/thumbnails/16.jpg)
Diskon 35%
![Page 17: Reservasi hotel](https://reader033.vdocuments.us/reader033/viewer/2022061221/54be8b2b4a7959fc738b46b0/html5/thumbnails/17.jpg)
Diskon 50%
![Page 18: Reservasi hotel](https://reader033.vdocuments.us/reader033/viewer/2022061221/54be8b2b4a7959fc738b46b0/html5/thumbnails/18.jpg)
Diskon 75%
![Page 19: Reservasi hotel](https://reader033.vdocuments.us/reader033/viewer/2022061221/54be8b2b4a7959fc738b46b0/html5/thumbnails/19.jpg)
About
![Page 20: Reservasi hotel](https://reader033.vdocuments.us/reader033/viewer/2022061221/54be8b2b4a7959fc738b46b0/html5/thumbnails/20.jpg)
** TIME IS UP **