5.10.10

Membuat Aplikasi Sendiri Menggunakan C++

Pernah membayangkan kita bisa buat sendiri Aplikasi Kasir layaknya di Swalayan atau supermaket. Mungkin bagi kita yang masih newbie (baca : pemula) sulit membuat aplikasi kasir ini. Tetapi tenang saja, Gw akan kasih tempe (kalo kasih tahu ud byasa....) bagaimana cara kita membuat Aplikasi Kasir Sederhana. Anda hanya butuh sekitar 5 menit saja untuk membuat aplikasi yang rumit kayak ini. So, siapkah Anda....??

Yang perlu Anda lakukan hanya trik ACM (Ambil, Copy, Modif). Langsung saja buka program C++, lalu buat file baru. Copy Paste script rahasia di bawah ini (rahasia kok d kasih tempe ya....bingung...)

#include
using namespace std;
void spasi()
{
cout< } int main() { int a[5]; int b; int c; int kode; int harga; int jumlah; int jml; int kode2; int harga2; int jumlah2; int jml2; int kode3; int harga3; int jumlah3; int jml3; int kode4; int harga4; int jumlah4; int jml4; int kode5; int harga5; int jumlah5; int jml5; int bayar; int sisa; int total; cout<<"SELAMAT DATANG DI TOKO IWAN"<>>b;
if(b < c="0;c<1;c++)">>kode;
spasi();
cout<<"HARGA BRG "<<"= "; cin>>harga;
spasi();
cout<<"JUMLAH BRG "<<"= "; cin>>jumlah;
spasi();
jml = harga * jumlah;
spasi();
cout<<"========================================="; spasi(); cout<<"|NO|KODE BRG|HARGA BRG|JML BRG|JML BAYAR|"; spasi(); cout<<"|=======================================|"; spasi(); cout<<"|"<<<" |"<<<" |"<<<" |"<<<" |"<<<" |"; spasi(); cout<<"|=======================================|"; spasi(); cout<<"|=======================================|"; spasi(); cout<<"TOTAL BAYAR "<>>bayar;
spasi();
sisa = bayar - jml;
cout<<"SISA PEMBAYARAN "< c="0;c<1;c++)">>kode;
spasi();
cout<<"HARGA BRG "<<"= "; cin>>harga;
spasi();
cout<<"JUMLAH BRG "<<"= "; cin>>jumlah;
spasi();
spasi();
cout<<"DATA BARANG "<<<""; cout<<'\n'; cout<<"No. "<<<" KODE BRG "<<"= "; cin>>kode2;
spasi();
cout<<"HARGA BRG "<<"= "; cin>>harga2;
spasi();
cout<<"JUMLAH BRG "<<"= "; cin>>jumlah2;
spasi();
spasi();

jml = harga * jumlah;
jml2 = harga2 * jumlah2;
spasi();
cout<<"========================================="; spasi(); cout<<"|NO|KODE BRG|HARGA BRG|JML BRG|JML BAYAR|"; spasi(); cout<<"|=======================================|"; spasi(); cout<<"|"<<<" |"<<<" |"<<<" |"<<<" |"<<<" |"; spasi(); cout<<"|=======================================|"; spasi(); cout<<"|"<<<" |"<<<" |"<<<" |"<<<" |"<<<" |"; spasi(); spasi(); cout<<"|=======================================|"; spasi(); total = jml + jml2; cout<<"TOTAL BAYAR "<>>bayar;
spasi();
sisa = bayar - total;
cout<<"SISA PEMBAYARAN "< c="0;c<1;c++)">>kode;
spasi();
cout<<"HARGA BRG "<<"= "; cin>>harga;
spasi();
cout<<"JUMLAH BRG "<<"= "; cin>>jumlah;
spasi();
spasi();
cout<<"DATA BARANG "<<<""; cout<<'\n'; cout<<"No. "<<<" KODE BRG "<<"= "; cin>>kode2;
spasi();
cout<<"HARGA BRG "<<"= "; cin>>harga2;
spasi();
cout<<"JUMLAH BRG "<<"= "; cin>>jumlah2;
spasi();
spasi();
cout<<"DATA BARANG "<<<""; cout<<'\n'; cout<<"No. "<<<" KODE BRG "<<"= "; cin>>kode3;
spasi();
cout<<"HARGA BRG "<<"= "; cin>>harga3;
spasi();
cout<<"JUMLAH BRG "<<"= "; cin>>jumlah3;
spasi();
spasi();
jml = harga * jumlah;
jml2 = harga2 * jumlah2;
jml3 = harga3 * jumlah3;
spasi();
cout<<"========================================="; spasi(); cout<<"|NO|KODE BRG|HARGA BRG|JML BRG|JML BAYAR|"; spasi(); cout<<"|=======================================|"; spasi(); cout<<"|"<<<" |"<<<" |"<<<" |"<<<" |"<<<" |"; spasi(); cout<<"|=======================================|"; spasi(); cout<<"|"<<<" |"<<<" |"<<<" |"<<<" |"<<<" |"; spasi(); cout<<"|=======================================|"; spasi(); cout<<"|"<<<" |"<<<" |"<<<" |"<<<" |"<<<" |"; spasi(); spasi(); cout<<"|=======================================|"; spasi(); total = jml + jml2 + jml3; cout<<"TOTAL BAYAR "<>>bayar;
spasi();
sisa = bayar - total;
cout<<"SISA PEMBAYARAN "< c="0;c<1;c++)">>kode;
spasi();
cout<<"HARGA BRG "<<"= "; cin>>harga;
spasi();
cout<<"JUMLAH BRG "<<"= "; cin>>jumlah;
spasi();
spasi();
cout<<"DATA BARANG "<<<""; cout<<'\n'; cout<<"No. "<<<" KODE BRG "<<"= "; cin>>kode2;
spasi();
cout<<"HARGA BRG "<<"= "; cin>>harga2;
spasi();
cout<<"JUMLAH BRG "<<"= "; cin>>jumlah2;
spasi();
spasi();
cout<<"DATA BARANG "<<<""; cout<<'\n'; cout<<"No. "<<<" KODE BRG "<<"= "; cin>>kode3;
spasi();
cout<<"HARGA BRG "<<"= "; cin>>harga3;
spasi();
cout<<"JUMLAH BRG "<<"= "; cin>>jumlah3;
spasi();
spasi();
cout<<"DATA BARANG "<<<""; cout<<'\n'; cout<<"No. "<<<" KODE BRG "<<"= "; cin>>kode4;
spasi();
cout<<"HARGA BRG "<<"= "; cin>>harga4;
spasi();
cout<<"JUMLAH BRG "<<"= "; cin>>jumlah4;
spasi();
spasi();
jml = harga * jumlah;
jml2 = harga2 * jumlah2;
jml3 = harga3 * jumlah3;
jml4 = harga4 * jumlah4;
spasi();
cout<<"========================================="; spasi(); cout<<"|NO|KODE BRG|HARGA BRG|JML BRG|JML BAYAR|"; spasi(); cout<<"|=======================================|"; spasi(); cout<<"|"<<<" |"<<<" |"<<<" |"<<<" |"<<<" |"; spasi(); cout<<"|=======================================|"; spasi(); cout<<"|"<<<" |"<<<" |"<<<" |"<<<" |"<<<" |"; spasi(); cout<<"|=======================================|"; spasi(); cout<<"|"<<<" |"<<<" |"<<<" |"<<<" |"<<<" |"; spasi(); spasi(); cout<<"|=======================================|"; spasi(); cout<<"|"<<<" |"<<<" |"<<<" |"<<<" |"<<<" |"; spasi(); cout<<"|=======================================|"; spasi(); total = jml + jml2 + jml3 + jml4; cout<<"TOTAL BAYAR "<>>bayar;
spasi();
sisa = bayar - total;
cout<<"SISA PEMBAYARAN "< c="0;c<1;c++)">>kode;
spasi();
cout<<"HARGA BRG "<<"= "; cin>>harga;
spasi();
cout<<"JUMLAH BRG "<<"= "; cin>>jumlah;
spasi();
spasi();
cout<<"DATA BARANG "<<<""; cout<<'\n'; cout<<"No. "<<<" KODE BRG "<<"= "; cin>>kode2;
spasi();
cout<<"HARGA BRG "<<"= "; cin>>harga2;
spasi();
cout<<"JUMLAH BRG "<<"= "; cin>>jumlah2;
spasi();
spasi();
cout<<"DATA BARANG "<<<""; cout<<'\n'; cout<<"No. "<<<" KODE BRG "<<"= "; cin>>kode3;
spasi();
cout<<"HARGA BRG "<<"= "; cin>>harga3;
spasi();
cout<<"JUMLAH BRG "<<"= "; cin>>jumlah3;
spasi();
spasi();
cout<<"DATA BARANG "<<<""; cout<<'\n'; cout<<"No. "<<<" KODE BRG "<<"= "; cin>>kode4;
spasi();
cout<<"HARGA BRG "<<"= "; cin>>harga4;
spasi();
cout<<"JUMLAH BRG "<<"= "; cin>>jumlah4;
spasi();
spasi();
cout<<"DATA BARANG "<<<""; cout<<'\n'; cout<<"No. "<<<" KODE BRG "<<"= "; cin>>kode5;
spasi();
cout<<"HARGA BRG "<<"= "; cin>>harga5;
spasi();
cout<<"JUMLAH BRG "<<"= "; cin>>jumlah5;
jml = harga * jumlah;
jml2 = harga2 * jumlah2;
jml3 = harga3 * jumlah3;
jml4 = harga4 * jumlah4;
jml5 = harga5 * jumlah5;
spasi();
cout<<"========================================="; spasi(); cout<<"|NO|KODE BRG|HARGA BRG|JML BRG|JML BAYAR|"; spasi(); cout<<"|=======================================|"; spasi(); cout<<"|"<<<" |"<<<" |"<<<" |"<<<" |"<<<" |"; spasi(); cout<<"|=======================================|"; spasi(); cout<<"|"<<<" |"<<<" |"<<<" |"<<<" |"<<<" |"; spasi(); cout<<"|=======================================|"; spasi(); cout<<"|"<<<" |"<<<" |"<<<" |"<<<" |"<<<" |"; spasi(); spasi(); cout<<"|=======================================|"; spasi(); cout<<"|"<<<" |"<<<" |"<<<" |"<<<" |"<<<" |"; spasi(); cout<<"|=======================================|"; spasi(); cout<<"|"<<<" |"<<<" |"<<<" |"<<<" |"<<<" |"; spasi(); cout<<"|=======================================|"; spasi(); total = jml + jml2 + jml3 + jml4 + jml5; cout<<"TOTAL BAYAR "<>>bayar;
spasi();
sisa = bayar - total;
cout<<"KEMBALI "<
spasi();
spasi();
cout<<"TERIMA KASIH TELAH BERBELANJA DI TOKO KAMI";
}
}
return 0;
}

Lalu Anda simpan, dan jalankan program Kasir di atas...Hasilnya seperti gambar di bawah ini...












Gambar Program Kasir

Gimana...??Menarik bukan...Kita hanya cukup membuat Aplikasi Kasir selama 5 menit aja....Selamat mencoba.....

0 komentar:

Posting Komentar