SlideShare una empresa de Scribd logo
1 de 20
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 **

Más contenido relacionado

La actualidad más candente

Sukubanyakdanteo
SukubanyakdanteoSukubanyakdanteo
SukubanyakdanteoUttha Uttha
 
Determinan hasil dekomposisi dengan cara crout pada matriks bujur sangkar
Determinan  hasil dekomposisi dengan cara crout pada matriks bujur sangkarDeterminan  hasil dekomposisi dengan cara crout pada matriks bujur sangkar
Determinan hasil dekomposisi dengan cara crout pada matriks bujur sangkarBAIDILAH Baidilah
 
Transformasi linear
Transformasi linear Transformasi linear
Transformasi linear unna_ahmad
 
Latihan Soal Matematika Ekonomi + Pembahasan (MBTI - Institut Manajemen Telkom)
Latihan Soal Matematika Ekonomi + Pembahasan (MBTI - Institut Manajemen Telkom)Latihan Soal Matematika Ekonomi + Pembahasan (MBTI - Institut Manajemen Telkom)
Latihan Soal Matematika Ekonomi + Pembahasan (MBTI - Institut Manajemen Telkom)Yunus Thariq
 
Sttm tm 05 modul 2 b limit tak hingga dan asimtot fungsi
Sttm tm 05 modul 2 b limit tak hingga dan asimtot fungsiSttm tm 05 modul 2 b limit tak hingga dan asimtot fungsi
Sttm tm 05 modul 2 b limit tak hingga dan asimtot fungsiPrayudi MT
 
Presentasi matematika-kelas-xii-turunan
Presentasi matematika-kelas-xii-turunanPresentasi matematika-kelas-xii-turunan
Presentasi matematika-kelas-xii-turunanProgrammer and Design
 
ERD Sistem Informasi Pemesanan Tiket Bioskop Online
ERD Sistem Informasi Pemesanan Tiket Bioskop OnlineERD Sistem Informasi Pemesanan Tiket Bioskop Online
ERD Sistem Informasi Pemesanan Tiket Bioskop OnlineLucha Kamala Putri
 
Soal-soal fungsi komposisi dan fungsi invers
Soal-soal fungsi komposisi dan fungsi inversSoal-soal fungsi komposisi dan fungsi invers
Soal-soal fungsi komposisi dan fungsi inversAlya Titania Annisaa
 
Operasi Aljabar pada Fungsi dan Fungsi Komposisi
Operasi Aljabar pada Fungsi dan Fungsi KomposisiOperasi Aljabar pada Fungsi dan Fungsi Komposisi
Operasi Aljabar pada Fungsi dan Fungsi Komposisisiska sri asali
 
Peluang Pelemparan Dua Uang Logam, Dadu dan Pengambilan Kartu Bridge
Peluang Pelemparan Dua Uang Logam, Dadu dan Pengambilan Kartu BridgePeluang Pelemparan Dua Uang Logam, Dadu dan Pengambilan Kartu Bridge
Peluang Pelemparan Dua Uang Logam, Dadu dan Pengambilan Kartu BridgeArning Susilawati
 
Matematika Diskrit kombinatorial
Matematika Diskrit  kombinatorialMatematika Diskrit  kombinatorial
Matematika Diskrit kombinatorialSiti Khotijah
 
Algoritma dan Struktur Data (Python) - Struktur Data
Algoritma dan Struktur Data (Python) - Struktur DataAlgoritma dan Struktur Data (Python) - Struktur Data
Algoritma dan Struktur Data (Python) - Struktur DataAndiNurkholis1
 
7. uji lanjut kontras
7. uji lanjut kontras7. uji lanjut kontras
7. uji lanjut kontrasMlutfi9
 
Probabilitas - Statistik 2
Probabilitas - Statistik 2Probabilitas - Statistik 2
Probabilitas - Statistik 2Deni Wahyu
 

La actualidad más candente (20)

Sukubanyakdanteo
SukubanyakdanteoSukubanyakdanteo
Sukubanyakdanteo
 
Determinan hasil dekomposisi dengan cara crout pada matriks bujur sangkar
Determinan  hasil dekomposisi dengan cara crout pada matriks bujur sangkarDeterminan  hasil dekomposisi dengan cara crout pada matriks bujur sangkar
Determinan hasil dekomposisi dengan cara crout pada matriks bujur sangkar
 
Struktur Data Tree
Struktur Data TreeStruktur Data Tree
Struktur Data Tree
 
Transformasi linear
Transformasi linear Transformasi linear
Transformasi linear
 
Latihan Soal Matematika Ekonomi + Pembahasan (MBTI - Institut Manajemen Telkom)
Latihan Soal Matematika Ekonomi + Pembahasan (MBTI - Institut Manajemen Telkom)Latihan Soal Matematika Ekonomi + Pembahasan (MBTI - Institut Manajemen Telkom)
Latihan Soal Matematika Ekonomi + Pembahasan (MBTI - Institut Manajemen Telkom)
 
Database rumah sakit
Database rumah sakitDatabase rumah sakit
Database rumah sakit
 
Sttm tm 05 modul 2 b limit tak hingga dan asimtot fungsi
Sttm tm 05 modul 2 b limit tak hingga dan asimtot fungsiSttm tm 05 modul 2 b limit tak hingga dan asimtot fungsi
Sttm tm 05 modul 2 b limit tak hingga dan asimtot fungsi
 
Presentasi matematika-kelas-xii-turunan
Presentasi matematika-kelas-xii-turunanPresentasi matematika-kelas-xii-turunan
Presentasi matematika-kelas-xii-turunan
 
Engineering economic 2
Engineering economic 2Engineering economic 2
Engineering economic 2
 
ERD Sistem Informasi Pemesanan Tiket Bioskop Online
ERD Sistem Informasi Pemesanan Tiket Bioskop OnlineERD Sistem Informasi Pemesanan Tiket Bioskop Online
ERD Sistem Informasi Pemesanan Tiket Bioskop Online
 
relasi himpunan
relasi himpunanrelasi himpunan
relasi himpunan
 
fungsi pecah
fungsi pecahfungsi pecah
fungsi pecah
 
Soal-soal fungsi komposisi dan fungsi invers
Soal-soal fungsi komposisi dan fungsi inversSoal-soal fungsi komposisi dan fungsi invers
Soal-soal fungsi komposisi dan fungsi invers
 
Operasi Aljabar pada Fungsi dan Fungsi Komposisi
Operasi Aljabar pada Fungsi dan Fungsi KomposisiOperasi Aljabar pada Fungsi dan Fungsi Komposisi
Operasi Aljabar pada Fungsi dan Fungsi Komposisi
 
Peluang Pelemparan Dua Uang Logam, Dadu dan Pengambilan Kartu Bridge
Peluang Pelemparan Dua Uang Logam, Dadu dan Pengambilan Kartu BridgePeluang Pelemparan Dua Uang Logam, Dadu dan Pengambilan Kartu Bridge
Peluang Pelemparan Dua Uang Logam, Dadu dan Pengambilan Kartu Bridge
 
Resume praktikum 6 stack
Resume praktikum 6 stackResume praktikum 6 stack
Resume praktikum 6 stack
 
Matematika Diskrit kombinatorial
Matematika Diskrit  kombinatorialMatematika Diskrit  kombinatorial
Matematika Diskrit kombinatorial
 
Algoritma dan Struktur Data (Python) - Struktur Data
Algoritma dan Struktur Data (Python) - Struktur DataAlgoritma dan Struktur Data (Python) - Struktur Data
Algoritma dan Struktur Data (Python) - Struktur Data
 
7. uji lanjut kontras
7. uji lanjut kontras7. uji lanjut kontras
7. uji lanjut kontras
 
Probabilitas - Statistik 2
Probabilitas - Statistik 2Probabilitas - Statistik 2
Probabilitas - Statistik 2
 

Similar a Reservasi hotel

Inventory management
Inventory managementInventory management
Inventory managementRajeev Sharan
 
Ensayo Convergencia Informatica
Ensayo Convergencia InformaticaEnsayo Convergencia Informatica
Ensayo Convergencia Informaticamiguel camelo
 
Vb Project ขั้นเทพ
Vb Project ขั้นเทพVb Project ขั้นเทพ
Vb Project ขั้นเทพSinchai Lanon
 
Membuat aplikasi penjualan buku sederhana
Membuat aplikasi penjualan buku sederhanaMembuat aplikasi penjualan buku sederhana
Membuat aplikasi penjualan buku sederhanaYusman Kurniadi
 
SISTEMA DE FACTURACION (Ejemplo desarrollado)
SISTEMA DE FACTURACION (Ejemplo desarrollado)SISTEMA DE FACTURACION (Ejemplo desarrollado)
SISTEMA DE FACTURACION (Ejemplo desarrollado)Darwin Durand
 
ejemplos gambas
ejemplos gambasejemplos gambas
ejemplos gambaseduann
 
Ejemplo En Gamabas
Ejemplo En GamabasEjemplo En Gamabas
Ejemplo En Gamabaseduann
 
Laboratory activity 3 b3
Laboratory activity 3 b3Laboratory activity 3 b3
Laboratory activity 3 b3Jomel Penalba
 
Practica porfe agustin eliminar y grabar
Practica porfe agustin eliminar y grabarPractica porfe agustin eliminar y grabar
Practica porfe agustin eliminar y grabarYosselin Marquez
 
Aplikasi rawat-inap-vbnet
Aplikasi rawat-inap-vbnetAplikasi rawat-inap-vbnet
Aplikasi rawat-inap-vbnetDiaz Alfahrezy
 
Excel Macros and VBA Demo.docx
Excel Macros and VBA Demo.docxExcel Macros and VBA Demo.docx
Excel Macros and VBA Demo.docxgunjangupta861854
 

Similar a 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
 

Más de dian pw

Operasi Aritmatika
Operasi AritmatikaOperasi Aritmatika
Operasi Aritmatikadian 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, Hexadesimaldian pw
 
Algoritma pemrograman
Algoritma pemrogramanAlgoritma pemrograman
Algoritma pemrogramandian pw
 
Perkembangan Sistem Operasi Open Source
Perkembangan Sistem Operasi Open SourcePerkembangan Sistem Operasi Open Source
Perkembangan Sistem Operasi Open Sourcedian 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 sourcedian pw
 
Prototype siakad um
Prototype siakad umPrototype siakad um
Prototype siakad umdian pw
 

Más de 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
 

Último

Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesVector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesZilliz
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Wonjun Hwang
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxNavinnSomaal
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024Stephanie Beckett
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024The Digital Insurer
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxhariprasad279825
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsMiki Katsuragi
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piececharlottematthew16
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 

Último (20)

Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesVector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector Databases
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering Tips
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piece
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 

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 **