membuat Program Sewa kamar sederhana untuk wisma/hotel C++

pada kali ini saya akan mengshare coding program sewa kamar sederhana menggunakan DEV C++. kalo belum punya aplikasinya bisa download yaa (cari google banyak :D ) ato bisa minta langsung ke saya.. kalo penasaran berikut codingnyaaa...

1. pertama buka aplikasi Dev C++
2. klik file new-source file (ctrl+n)
3.copy and pastekan coding berikuttt



#include <iostream>
#include <conio.h>
#include <stdio.h>
using namespace std;
main()
{
                char np[30],nc[30],kode,tgl[20],*nk;
                int lama,harga,jb,ub,uk,tb;
                float diskon;
                cout<<"                                                Penginapan ilmu gua ilmu luh juga,\n                                     =======================================\n";
                cout<<"input Nama Petugas :";cin>>np;
                cout<<"input Nama Customer :";cin>>nc;
                cout<<"input Tanggal Check in:";cin>>tgl;
                cout<<"===========================================\n";
                cout<<"Pilih Kode Kamar[L/S/M]:";cin>>kode;
                cout<<"inputan Lama Sewa :",cin>>lama;
                cout<<"\n";
                cout<<"\n";
                cout<<"\n";
                cout<<"                 Bukti Pemesanan Kamar\n Penginapan Panda,inn\n======================\n";

                cout<<"Nama Petugas :"<<np;
                cout<<"                                Nama Customer:"<<nc<<endl;
                cout<<"                Tanggal Check In: "<<tgl<<endl;
                cout<<"========================\n";
               
                if(kode=='L'||kode=='L')
                                {nk="Lily";
                                                harga=250000;
                                }
                else if (kode=='S'||kode=='s')
                                { nk="Sakura";
                                                harga=150000;
                                }
                else if (kode=='M'||kode=='m')
                                { nk="Mawar";
                                                harga=75000;
                                }
                cout<<"Nama Kamar Yang Dipesan : "<<nk<<endl;
                cout<<"Harga Sewa              : "<<harga<<endl;
                cout<<"Lama Sewa               : "<<lama; cout<<"  Hari\n";
                cout<<"-----------------------------------------------------------------\n";
                jb=harga*lama;
                cout<<"Jumlah Bayar              : "<<jb<<endl;
                diskon=jb-150000;
                cout<<"5 Hari sewa dapat Diskon  : "<<diskon<<endl;
                cout<<"-----------------------------------------------------------------\n";
                tb=jb-diskon;
                cout<<"Total Bayar             : "<<tb<<endl;
                cout<<"Uang Bayar              : ";cin>>ub;
                uk=ub-tb;
                cout<<"Uang Kembali            : "<<uk<<endl;
                cout<<"                   Terima Kasih Atas Kunjungan Anda";
                getch();
}

4. berikut tampilan coding di atas yang sudah di jalankan hasil jadi..

4.jika sudah di paste coba jalankan yee berhasil, pelajari codingnnyaa ubah kalo ada yg mau di ubah berimajimasi lah sama coding, selamat mencobaa ......