Tugas C++ Struk Pembayaran Cinema

Tugas C++ Membuat STRUK PEMBAYARAN “21” CINEMA

 Tugas pertemuan 2 borlan C++ membuat program struke pembayaran 21 atau bioskop.




 hasil Tugas Tugas C++ Membuat STRUK  PEMBAYARAN  “21”  CINEMA
TAMPILAN INPUT
TAMPILAN OUTPUT

Script Borlan C++ Program STRUK  PEMBAYARAN  “21”  CINEMA 

/*——————————————————————————————*/
/* Tugas C++ Membuat STRUK  PEMBAYARAN  “21”  CINEMA   */
/*——————————————————————————————*/

#include <stdio.h>
#include <conio.h>
#include <iostream.h>
main()
{
char kd[8],jenis[10];
int jml,hrg;
float ttl;
clrscr();
printf("             21 CINEMA          \n");
cout<<"********************************** \n";
cout<<"\n";
cout<<"Masukkan Kode Film        :";cin>>kd;
cout<<"Masukkan Jenis Film       :";gets(jenis);
cout<<"Masukkan Harga Sewa       :";cin>>hrg;
cout<<"Masukkan Jumlah Sewa      :";cin>>jml;
ttl=jml*hrg;
clrscr();
cout<<"********************************** \n";
printf("   STRUK PEMBAYARAN 21 CINEMA   \n");
cout<<"********************************** \n";
cout<<"\n";
cout<<"Kode Film        :"<<kd<<endl;
printf("Jenis Film       :%s",jenis);
cout<<"\nHarga Sewa       :"<<hrg<<endl;
cout<<"Jumlah           :"<<jml<<endl;
cout<<"Total Bayar      :"<<ttl<<endl;
cout<<"********************************** \n";
cout<<endl;
cout<<"           -TERIMA KASIH-           ";
getch();

}

Related Posts:

0 Response to "Tugas C++ Struk Pembayaran Cinema"

Post a Comment