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

Jenis dan proses interupsi
Jenis dan proses interupsiJenis dan proses interupsi
Jenis dan proses interupsilaurensius08
 
Bahasa Pemrograman C++
Bahasa Pemrograman C++Bahasa Pemrograman C++
Bahasa Pemrograman C++Rangga Ananto
 
Integrasi numerik metode riemann
Integrasi numerik metode riemannIntegrasi numerik metode riemann
Integrasi numerik metode riemannsttmc
 
Luas daerah kurva dengan integral
Luas daerah kurva dengan integralLuas daerah kurva dengan integral
Luas daerah kurva dengan integralDeni S'tia
 
Bab 5 penyederhanaan fungsi boolean
Bab 5 penyederhanaan fungsi booleanBab 5 penyederhanaan fungsi boolean
Bab 5 penyederhanaan fungsi booleanCliquerz Javaneze
 
Algoritma Pemrograman (Flowchart) - Logika dan Algoritma
Algoritma Pemrograman (Flowchart) - Logika dan AlgoritmaAlgoritma Pemrograman (Flowchart) - Logika dan Algoritma
Algoritma Pemrograman (Flowchart) - Logika dan AlgoritmaAri Septiawan
 
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 quin1BAIDILAH Baidilah
 
Metode numerik [rifqi.ikhwanuddin.com]
Metode numerik [rifqi.ikhwanuddin.com]Metode numerik [rifqi.ikhwanuddin.com]
Metode numerik [rifqi.ikhwanuddin.com]Tri Jayanti
 
Kelompok 5 cpu schedule
Kelompok 5 cpu scheduleKelompok 5 cpu schedule
Kelompok 5 cpu schedulenovita dewi
 
Integral lipat dua dalam koordinat cartecius
Integral lipat dua dalam koordinat carteciusIntegral lipat dua dalam koordinat cartecius
Integral lipat dua dalam koordinat carteciusMha AMha Aathifah
 
Penggunaan timespan VB.Net
Penggunaan timespan VB.NetPenggunaan timespan VB.Net
Penggunaan timespan VB.NetWirat Mojo
 
Teknik integrasi
Teknik integrasiTeknik integrasi
Teknik integrasiindirahayu
 
Tugas 2 kelompok 1 pemograman komputer
Tugas 2 kelompok 1 pemograman komputerTugas 2 kelompok 1 pemograman komputer
Tugas 2 kelompok 1 pemograman komputerphipin
 
2. Array of Record (Struktur Data)
2. Array of Record (Struktur Data)2. Array of Record (Struktur Data)
2. Array of Record (Struktur Data)Kelinci Coklat
 

La actualidad más candente (20)

Jenis dan proses interupsi
Jenis dan proses interupsiJenis dan proses interupsi
Jenis dan proses interupsi
 
Bahasa Pemrograman C++
Bahasa Pemrograman C++Bahasa Pemrograman C++
Bahasa Pemrograman C++
 
Integrasi numerik metode riemann
Integrasi numerik metode riemannIntegrasi numerik metode riemann
Integrasi numerik metode riemann
 
Modul pengenalan proteus
Modul pengenalan proteusModul pengenalan proteus
Modul pengenalan proteus
 
Luas daerah kurva dengan integral
Luas daerah kurva dengan integralLuas daerah kurva dengan integral
Luas daerah kurva dengan integral
 
Bab 5 penyederhanaan fungsi boolean
Bab 5 penyederhanaan fungsi booleanBab 5 penyederhanaan fungsi boolean
Bab 5 penyederhanaan fungsi boolean
 
Algoritma Pemrograman (Flowchart) - Logika dan Algoritma
Algoritma Pemrograman (Flowchart) - Logika dan AlgoritmaAlgoritma Pemrograman (Flowchart) - Logika dan Algoritma
Algoritma Pemrograman (Flowchart) - Logika dan Algoritma
 
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
 
Metode numerik [rifqi.ikhwanuddin.com]
Metode numerik [rifqi.ikhwanuddin.com]Metode numerik [rifqi.ikhwanuddin.com]
Metode numerik [rifqi.ikhwanuddin.com]
 
Relasi Rekurensi
Relasi RekurensiRelasi Rekurensi
Relasi Rekurensi
 
Kelompok 5 cpu schedule
Kelompok 5 cpu scheduleKelompok 5 cpu schedule
Kelompok 5 cpu schedule
 
Soal uts 1 6 semester 2
Soal uts 1 6 semester 2Soal uts 1 6 semester 2
Soal uts 1 6 semester 2
 
Met num 10
Met num 10Met num 10
Met num 10
 
kalkulus dasar
kalkulus dasarkalkulus dasar
kalkulus dasar
 
Integral lipat dua dalam koordinat cartecius
Integral lipat dua dalam koordinat carteciusIntegral lipat dua dalam koordinat cartecius
Integral lipat dua dalam koordinat cartecius
 
Penggunaan timespan VB.Net
Penggunaan timespan VB.NetPenggunaan timespan VB.Net
Penggunaan timespan VB.Net
 
Teknik integrasi
Teknik integrasiTeknik integrasi
Teknik integrasi
 
Contoh soal uts struktur data
Contoh soal uts struktur dataContoh soal uts struktur data
Contoh soal uts struktur data
 
Tugas 2 kelompok 1 pemograman komputer
Tugas 2 kelompok 1 pemograman komputerTugas 2 kelompok 1 pemograman komputer
Tugas 2 kelompok 1 pemograman komputer
 
2. Array of Record (Struktur Data)
2. Array of Record (Struktur Data)2. Array of Record (Struktur Data)
2. Array of Record (Struktur Data)
 

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

Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessPixlogix Infotech
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 

Último (20)

Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 

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