#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<<"HOTEL BOJOK GALAK\n \n";
cout<<"Nama Petugas :";cin>>np;
cout<<"Nama Customer :";cin>>nc;
cout<<"Tanggal Check in:";cin>>tgl;
cout<<"Pilih Kode Kamar[L/S/M]:";cin>>kode;
cout<<"Lama Sewa :",cin>>lama;
cout<<"\n";
cout<<"\n";
cout<<"\n";
cout<<" Bukti Pemesanan Kamar\n\n===================================================\n";
cout<<"Nama Petugas : "<<np;
cout<<"Nama Customer: "<<nc;
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-150000;
cout<<"Total Bayar : "<<tb<<endl;
cout<<"Uang Bayar : ";cin>>ub;
uk=ub-tb;
cout<<"Uang Kembali : "<<uk<<endl;
cout<<"=================================================================\n";
cout<<" TERIMA KASIH";
getch();
}
Tidak ada komentar:
Posting Komentar