Selasa, 30 September 2014
C++ STRUK BIOSKOP
#include <stdio.h>
#include <conio.h>
#include <iostream.h>
main()
{
int harga=35000, jumlah, total;
char kode[10], jenis[10];
clrscr();
cout<<"====================================\n";
printf(" 13 CINEMA \n");
cout<<"====================================\n";
cout<<" MASUKKAN KODE FILM :";cin>>kode;
cout<<" MASUKKAN JENIS FILM :";gets(jenis);
printf(" MASUKKAN HARGA SEWA :%i\n",harga);
cout<<" MASUKKAN JUMLAH SEWA :";cin>>jumlah;
clrscr();
cout<<" |=====================================|\n";
printf(" | STRUK PEMBAYARAN 13 CINEMA |\n");
cout<<" |=====================================|\n";
total=harga*jumlah;
cout<<" KODE FILM :"<<kode<<endl;
printf(" JENIS FILM :%s",jenis);
cout<<"\n HARGA SEWA :"<<harga<<endl;
cout<<" JUMLAH SEWA :"<<jumlah<<endl;
cout<<" TOTAL BAYAR :"<<total<<endl;
cout<<" |=====================================|\n";
cout<<endl<<endl;
cout<<" _TERIMA KASIH_ \n";
cout<<" _SELAMAT MENONTON_ \n";
cout<<" |=====================================|\n";
getch();
}
Selasa, 23 September 2014
Langganan:
Postingan (Atom)