SlideShare a Scribd company logo
KELOMPOK 6
 HOTEL
CORE BEE

DIAN PURWANTO
 (100533406901)
  ………………..
 …………………
……………………
Flowchart
Lanjutan
Listing Program
Option Strict Off
Public 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()
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
Lanjutan
nm_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
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)
Lanjutan
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
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
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

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 Sub
End Class
SplashScreen
Exception
Diskon 0%
Diskon 20%
Diskon 35%
Diskon 50%
Diskon 75%
About
** TIME IS UP **

More Related Content

What's hot

matematika keuangan bunga sederhana
matematika keuangan bunga sederhanamatematika keuangan bunga sederhana
matematika keuangan bunga sederhana
Asep suryadi
 
Dasar dasar matematika teknik optimasi (matrix hessian)
Dasar dasar matematika teknik optimasi (matrix hessian)Dasar dasar matematika teknik optimasi (matrix hessian)
Dasar dasar matematika teknik optimasi (matrix hessian)
Muhammad Ali Subkhan Candra
 
PPT Teori Produksi Dua Input Variabel
PPT Teori Produksi Dua Input VariabelPPT Teori Produksi Dua Input Variabel
PPT Teori Produksi Dua Input Variabel
Wahyufitri1999
 
Teori Permintaan Uang : Klasik, Keynes, Post Keynes Modern
Teori Permintaan Uang : Klasik, Keynes, Post Keynes ModernTeori Permintaan Uang : Klasik, Keynes, Post Keynes Modern
Teori Permintaan Uang : Klasik, Keynes, Post Keynes Modern
Muhammad Khoirul Fuddin
 
Matematika Ekonomi : Himpunan
Matematika Ekonomi : HimpunanMatematika Ekonomi : Himpunan
Matematika Ekonomi : Himpunan
MaharaniIka Chuby
 
DDP : Menampilkan Output Tanggal Hari Besok Berdasarkan Input Tanggal Hari Ini
DDP : Menampilkan Output Tanggal Hari Besok Berdasarkan Input Tanggal Hari IniDDP : Menampilkan Output Tanggal Hari Besok Berdasarkan Input Tanggal Hari Ini
DDP : Menampilkan Output Tanggal Hari Besok Berdasarkan Input Tanggal Hari Ini
amalianuryamin
 
ITP UNS SEMESTER 2 Teori permainan ro
ITP UNS SEMESTER 2 Teori permainan roITP UNS SEMESTER 2 Teori permainan ro
ITP UNS SEMESTER 2 Teori permainan roFransiska Puteri
 
Pertemuan 10
Pertemuan 10Pertemuan 10
Pertemuan 10
Muhamad Edi.S
 
Array dan Pointer
Array dan PointerArray dan Pointer
Array dan Pointer
Diana Anggraini
 
Strategi dominan & keseimbangan nash
Strategi dominan & keseimbangan nashStrategi dominan & keseimbangan nash
Strategi dominan & keseimbangan nash
Opissen Yudisyus
 
Riset operasi
Riset operasiRiset operasi
Riset operasi
yy rahmat
 
Fungsi Dua Peubah ( Kalkulus 2 )
Fungsi Dua Peubah ( Kalkulus 2 )Fungsi Dua Peubah ( Kalkulus 2 )
Fungsi Dua Peubah ( Kalkulus 2 )
Kelinci Coklat
 
Pengenalan c++ bagian 3
Pengenalan c++ bagian 3Pengenalan c++ bagian 3
Pengenalan c++ bagian 3
Fazar Ikhwan Guntara
 
Materi kuliah-matematika-ekonomi-tingkat-1-semester-1
Materi kuliah-matematika-ekonomi-tingkat-1-semester-1Materi kuliah-matematika-ekonomi-tingkat-1-semester-1
Materi kuliah-matematika-ekonomi-tingkat-1-semester-1
alfatfatoha
 
linear programming metode simplex
linear programming metode simplexlinear programming metode simplex
linear programming metode simplex
Bambang Kristiono
 
Model simulasi antrian gtr
Model simulasi antrian gtrModel simulasi antrian gtr
Model simulasi antrian gtr
Gusti Rusmayadi
 
Algoritma Pemrograman (Flowchart) - Logika dan Algoritma
Algoritma Pemrograman (Flowchart) - Logika dan AlgoritmaAlgoritma Pemrograman (Flowchart) - Logika dan Algoritma
Algoritma Pemrograman (Flowchart) - Logika dan Algoritma
Ari Septiawan
 
Permintaan, Penawaran, dan Keseimbangan Pasar
Permintaan, Penawaran, dan Keseimbangan PasarPermintaan, Penawaran, dan Keseimbangan Pasar
Permintaan, Penawaran, dan Keseimbangan Pasar
Muhamad Fierza Hazmi
 
Menyederhanakan fungsi boolean dengan menggunakan metode quin1
Menyederhanakan fungsi boolean dengan menggunakan metode quin1Menyederhanakan fungsi boolean dengan menggunakan metode quin1
Menyederhanakan fungsi boolean dengan menggunakan metode quin1
BAIDILAH Baidilah
 
Pengantar statistika slide 3
Pengantar statistika slide 3Pengantar statistika slide 3
Pengantar statistika slide 3
Az'End Love
 

What's hot (20)

matematika keuangan bunga sederhana
matematika keuangan bunga sederhanamatematika keuangan bunga sederhana
matematika keuangan bunga sederhana
 
Dasar dasar matematika teknik optimasi (matrix hessian)
Dasar dasar matematika teknik optimasi (matrix hessian)Dasar dasar matematika teknik optimasi (matrix hessian)
Dasar dasar matematika teknik optimasi (matrix hessian)
 
PPT Teori Produksi Dua Input Variabel
PPT Teori Produksi Dua Input VariabelPPT Teori Produksi Dua Input Variabel
PPT Teori Produksi Dua Input Variabel
 
Teori Permintaan Uang : Klasik, Keynes, Post Keynes Modern
Teori Permintaan Uang : Klasik, Keynes, Post Keynes ModernTeori Permintaan Uang : Klasik, Keynes, Post Keynes Modern
Teori Permintaan Uang : Klasik, Keynes, Post Keynes Modern
 
Matematika Ekonomi : Himpunan
Matematika Ekonomi : HimpunanMatematika Ekonomi : Himpunan
Matematika Ekonomi : Himpunan
 
DDP : Menampilkan Output Tanggal Hari Besok Berdasarkan Input Tanggal Hari Ini
DDP : Menampilkan Output Tanggal Hari Besok Berdasarkan Input Tanggal Hari IniDDP : Menampilkan Output Tanggal Hari Besok Berdasarkan Input Tanggal Hari Ini
DDP : Menampilkan Output Tanggal Hari Besok Berdasarkan Input Tanggal Hari Ini
 
ITP UNS SEMESTER 2 Teori permainan ro
ITP UNS SEMESTER 2 Teori permainan roITP UNS SEMESTER 2 Teori permainan ro
ITP UNS SEMESTER 2 Teori permainan ro
 
Pertemuan 10
Pertemuan 10Pertemuan 10
Pertemuan 10
 
Array dan Pointer
Array dan PointerArray dan Pointer
Array dan Pointer
 
Strategi dominan & keseimbangan nash
Strategi dominan & keseimbangan nashStrategi dominan & keseimbangan nash
Strategi dominan & keseimbangan nash
 
Riset operasi
Riset operasiRiset operasi
Riset operasi
 
Fungsi Dua Peubah ( Kalkulus 2 )
Fungsi Dua Peubah ( Kalkulus 2 )Fungsi Dua Peubah ( Kalkulus 2 )
Fungsi Dua Peubah ( Kalkulus 2 )
 
Pengenalan c++ bagian 3
Pengenalan c++ bagian 3Pengenalan c++ bagian 3
Pengenalan c++ bagian 3
 
Materi kuliah-matematika-ekonomi-tingkat-1-semester-1
Materi kuliah-matematika-ekonomi-tingkat-1-semester-1Materi kuliah-matematika-ekonomi-tingkat-1-semester-1
Materi kuliah-matematika-ekonomi-tingkat-1-semester-1
 
linear programming metode simplex
linear programming metode simplexlinear programming metode simplex
linear programming metode simplex
 
Model simulasi antrian gtr
Model simulasi antrian gtrModel simulasi antrian gtr
Model simulasi antrian gtr
 
Algoritma Pemrograman (Flowchart) - Logika dan Algoritma
Algoritma Pemrograman (Flowchart) - Logika dan AlgoritmaAlgoritma Pemrograman (Flowchart) - Logika dan Algoritma
Algoritma Pemrograman (Flowchart) - Logika dan Algoritma
 
Permintaan, Penawaran, dan Keseimbangan Pasar
Permintaan, Penawaran, dan Keseimbangan PasarPermintaan, Penawaran, dan Keseimbangan Pasar
Permintaan, Penawaran, dan Keseimbangan Pasar
 
Menyederhanakan fungsi boolean dengan menggunakan metode quin1
Menyederhanakan fungsi boolean dengan menggunakan metode quin1Menyederhanakan fungsi boolean dengan menggunakan metode quin1
Menyederhanakan fungsi boolean dengan menggunakan metode quin1
 
Pengantar statistika slide 3
Pengantar statistika slide 3Pengantar statistika slide 3
Pengantar statistika slide 3
 

Similar to Reservasi hotel

Inventory management
Inventory managementInventory management
Inventory management
Rajeev Sharan
 
Ensayo Convergencia Informatica
Ensayo Convergencia InformaticaEnsayo Convergencia Informatica
Ensayo Convergencia Informatica
miguel camelo
 
Vb Project ขั้นเทพ
Vb Project ขั้นเทพVb Project ขั้นเทพ
Vb Project ขั้นเทพ
Sinchai Lanon
 
Correction s+ rie_vb
Correction s+ rie_vbCorrection s+ rie_vb
Correction s+ rie_vb
Marwane Lamouri
 
Membuat aplikasi penjualan buku sederhana
Membuat aplikasi penjualan buku sederhanaMembuat aplikasi penjualan buku sederhana
Membuat aplikasi penjualan buku sederhana
Yusman Kurniadi
 
Vb file
Vb fileVb file
SISTEMA DE FACTURACION (Ejemplo desarrollado)
SISTEMA DE FACTURACION (Ejemplo desarrollado)SISTEMA DE FACTURACION (Ejemplo desarrollado)
SISTEMA DE FACTURACION (Ejemplo desarrollado)
Darwin Durand
 
Simulador
SimuladorSimulador
Simulador
Luis Rodriguez
 
Simulador
SimuladorSimulador
Simulador
Luis Rodriguez
 
ejemplos gambas
ejemplos gambasejemplos gambas
ejemplos gambas
eduann
 
Kode vb.net
Kode vb.netKode vb.net
Kode vb.net
Azki Nabidin
 
Kode vb.net
Kode vb.netKode vb.net
Kode vb.net
Azki Nabidin
 
Colegio municipal
Colegio municipalColegio municipal
Colegio municipal
lenintoapanta1992
 
Ejemplo En Gamabas
Ejemplo En GamabasEjemplo En Gamabas
Ejemplo En Gamabas
eduann
 
Laboratory activity 3 b3
Laboratory activity 3 b3Laboratory activity 3 b3
Laboratory activity 3 b3
Jomel Penalba
 
Practica porfe agustin eliminar y grabar
Practica porfe agustin eliminar y grabarPractica porfe agustin eliminar y grabar
Practica porfe agustin eliminar y grabar
Yosselin Marquez
 
Punto fijo multivariante
Punto fijo multivariantePunto fijo multivariante
Punto fijo multivariante
Remigio Pérez Palomino
 
Aplikasi rawat-inap-vbnet
Aplikasi rawat-inap-vbnetAplikasi rawat-inap-vbnet
Aplikasi rawat-inap-vbnet
Diaz Alfahrezy
 
Docimp
DocimpDocimp
Docimp
KaivanShah30
 
Excel Macros and VBA Demo.docx
Excel Macros and VBA Demo.docxExcel Macros and VBA Demo.docx
Excel Macros and VBA Demo.docx
gunjangupta861854
 

Similar to Reservasi hotel (20)

Inventory management
Inventory managementInventory management
Inventory management
 
Ensayo Convergencia Informatica
Ensayo Convergencia InformaticaEnsayo Convergencia Informatica
Ensayo Convergencia Informatica
 
Vb Project ขั้นเทพ
Vb Project ขั้นเทพVb Project ขั้นเทพ
Vb Project ขั้นเทพ
 
Correction s+ rie_vb
Correction s+ rie_vbCorrection s+ rie_vb
Correction s+ rie_vb
 
Membuat aplikasi penjualan buku sederhana
Membuat aplikasi penjualan buku sederhanaMembuat aplikasi penjualan buku sederhana
Membuat aplikasi penjualan buku sederhana
 
Vb file
Vb fileVb file
Vb file
 
SISTEMA DE FACTURACION (Ejemplo desarrollado)
SISTEMA DE FACTURACION (Ejemplo desarrollado)SISTEMA DE FACTURACION (Ejemplo desarrollado)
SISTEMA DE FACTURACION (Ejemplo desarrollado)
 
Simulador
SimuladorSimulador
Simulador
 
Simulador
SimuladorSimulador
Simulador
 
ejemplos gambas
ejemplos gambasejemplos gambas
ejemplos gambas
 
Kode vb.net
Kode vb.netKode vb.net
Kode vb.net
 
Kode vb.net
Kode vb.netKode vb.net
Kode vb.net
 
Colegio municipal
Colegio municipalColegio municipal
Colegio municipal
 
Ejemplo En Gamabas
Ejemplo En GamabasEjemplo En Gamabas
Ejemplo En Gamabas
 
Laboratory activity 3 b3
Laboratory activity 3 b3Laboratory activity 3 b3
Laboratory activity 3 b3
 
Practica porfe agustin eliminar y grabar
Practica porfe agustin eliminar y grabarPractica porfe agustin eliminar y grabar
Practica porfe agustin eliminar y grabar
 
Punto fijo multivariante
Punto fijo multivariantePunto fijo multivariante
Punto fijo multivariante
 
Aplikasi rawat-inap-vbnet
Aplikasi rawat-inap-vbnetAplikasi rawat-inap-vbnet
Aplikasi rawat-inap-vbnet
 
Docimp
DocimpDocimp
Docimp
 
Excel Macros and VBA Demo.docx
Excel Macros and VBA Demo.docxExcel Macros and VBA Demo.docx
Excel Macros and VBA Demo.docx
 

More from dian pw

Operasi Aritmatika
Operasi AritmatikaOperasi Aritmatika
Operasi Aritmatika
dian pw
 
Rangkaian logika dasar
Rangkaian logika dasar Rangkaian logika dasar
Rangkaian logika dasar
dian pw
 
Konversi bilangan Desimal, Biner, Oktal, Hexadesimal
Konversi bilangan Desimal, Biner, Oktal, HexadesimalKonversi bilangan Desimal, Biner, Oktal, Hexadesimal
Konversi bilangan Desimal, Biner, Oktal, Hexadesimal
dian pw
 
Algoritma pemrograman
Algoritma pemrogramanAlgoritma pemrograman
Algoritma pemrograman
dian pw
 
Perkembangan Sistem Operasi Open Source
Perkembangan Sistem Operasi Open SourcePerkembangan Sistem Operasi Open Source
Perkembangan Sistem Operasi Open Source
dian pw
 
Administrasi sistem operasi closed source (cmd)
Administrasi sistem operasi closed source (cmd)Administrasi sistem operasi closed source (cmd)
Administrasi sistem operasi closed source (cmd)
dian pw
 
Perkembangan sistem operasi close source
Perkembangan sistem operasi close sourcePerkembangan sistem operasi close source
Perkembangan sistem operasi close source
dian pw
 
Prototype siakad um
Prototype siakad umPrototype siakad um
Prototype siakad umdian pw
 

More from dian pw (9)

Operasi Aritmatika
Operasi AritmatikaOperasi Aritmatika
Operasi Aritmatika
 
Rangkaian logika dasar
Rangkaian logika dasar Rangkaian logika dasar
Rangkaian logika dasar
 
Konversi bilangan Desimal, Biner, Oktal, Hexadesimal
Konversi bilangan Desimal, Biner, Oktal, HexadesimalKonversi bilangan Desimal, Biner, Oktal, Hexadesimal
Konversi bilangan Desimal, Biner, Oktal, Hexadesimal
 
Algoritma pemrograman
Algoritma pemrogramanAlgoritma pemrograman
Algoritma pemrograman
 
Perkembangan Sistem Operasi Open Source
Perkembangan Sistem Operasi Open SourcePerkembangan Sistem Operasi Open Source
Perkembangan Sistem Operasi Open Source
 
Administrasi sistem operasi closed source (cmd)
Administrasi sistem operasi closed source (cmd)Administrasi sistem operasi closed source (cmd)
Administrasi sistem operasi closed source (cmd)
 
Perkembangan sistem operasi close source
Perkembangan sistem operasi close sourcePerkembangan sistem operasi close source
Perkembangan sistem operasi close source
 
Prototype siakad um
Prototype siakad umPrototype siakad um
Prototype siakad um
 
Ham
HamHam
Ham
 

Recently uploaded

20240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 202420240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 2024
Matthew Sinclair
 
AI 101: An Introduction to the Basics and Impact of Artificial Intelligence
AI 101: An Introduction to the Basics and Impact of Artificial IntelligenceAI 101: An Introduction to the Basics and Impact of Artificial Intelligence
AI 101: An Introduction to the Basics and Impact of Artificial Intelligence
IndexBug
 
Mind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AIMind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AI
Kumud Singh
 
Infrastructure Challenges in Scaling RAG with Custom AI models
Infrastructure Challenges in Scaling RAG with Custom AI modelsInfrastructure Challenges in Scaling RAG with Custom AI models
Infrastructure Challenges in Scaling RAG with Custom AI models
Zilliz
 
Full-RAG: A modern architecture for hyper-personalization
Full-RAG: A modern architecture for hyper-personalizationFull-RAG: A modern architecture for hyper-personalization
Full-RAG: A modern architecture for hyper-personalization
Zilliz
 
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
Neo4j
 
Serial Arm Control in Real Time Presentation
Serial Arm Control in Real Time PresentationSerial Arm Control in Real Time Presentation
Serial Arm Control in Real Time Presentation
tolgahangng
 
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAUHCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
panagenda
 
Pushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 daysPushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 days
Adtran
 
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Speck&Tech
 
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
Neo4j
 
How to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptxHow to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptx
danishmna97
 
Video Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the FutureVideo Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the Future
Alpen-Adria-Universität
 
UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6
DianaGray10
 
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
SOFTTECHHUB
 
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
Neo4j
 
Microsoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdfMicrosoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdf
Uni Systems S.M.S.A.
 
Presentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of GermanyPresentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of Germany
innovationoecd
 
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdfUnlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Malak Abu Hammad
 
HCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAUHCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAU
panagenda
 

Recently uploaded (20)

20240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 202420240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 2024
 
AI 101: An Introduction to the Basics and Impact of Artificial Intelligence
AI 101: An Introduction to the Basics and Impact of Artificial IntelligenceAI 101: An Introduction to the Basics and Impact of Artificial Intelligence
AI 101: An Introduction to the Basics and Impact of Artificial Intelligence
 
Mind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AIMind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AI
 
Infrastructure Challenges in Scaling RAG with Custom AI models
Infrastructure Challenges in Scaling RAG with Custom AI modelsInfrastructure Challenges in Scaling RAG with Custom AI models
Infrastructure Challenges in Scaling RAG with Custom AI models
 
Full-RAG: A modern architecture for hyper-personalization
Full-RAG: A modern architecture for hyper-personalizationFull-RAG: A modern architecture for hyper-personalization
Full-RAG: A modern architecture for hyper-personalization
 
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
 
Serial Arm Control in Real Time Presentation
Serial Arm Control in Real Time PresentationSerial Arm Control in Real Time Presentation
Serial Arm Control in Real Time Presentation
 
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAUHCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
 
Pushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 daysPushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 days
 
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
 
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
 
How to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptxHow to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptx
 
Video Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the FutureVideo Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the Future
 
UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6
 
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
 
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
 
Microsoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdfMicrosoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdf
 
Presentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of GermanyPresentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of Germany
 
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdfUnlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
 
HCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAUHCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAU
 

Reservasi hotel

  • 1. KELOMPOK 6 HOTEL CORE BEE DIAN PURWANTO (100533406901) ……………….. ………………… ……………………
  • 4. Listing Program Option Strict Off Public 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()
  • 5. 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
  • 6. Lanjutan nm_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
  • 7. 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)
  • 8. Lanjutan 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
  • 9. Lanjutan 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
  • 10. Lanjutan 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
  • 11. Lanjutan 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 Sub End Class
  • 19. About
  • 20. ** TIME IS UP **