Asalamu’alaikum..
Disini saya ingin berbagi kodingan dalam bahasa C. Ini
sebenarnya adalah projekan UAS pelatihan Algoritma setahun yang lalu. Aplikasi penjualan
tiket stadion.
Selamat menyimak. Semoga bermanfaat :)
//layar = hight 50
width 100
//Library
#include
<conio.h>
#include
<stdio.h>
#include
<string.h>
#include
<stdlib.h>
#include
<windows.h>
#include
<iostream.h>
/*textcolor.........1=biru
tua,2=hijau tua,
3=hijau abu abu,4=merah
tua,5=ungu,6=hijau coklat,
7=putih,8=abu abu,9=biru cerah,
10=hijau cerah,11=azure,12=merah
hati,13=ungu cerah
14=kuning cerah,15=putih cerah*/
//=========================================VARIABEL
GLOBAL=========================================
char pilih[1];
char stadion[21]="Kanjuruhan";
char
tim1[21]={"Arema FC"},tim2[21]={"Persib"};
char
tribun[6][20]={"VVIP","VIP","Tribun
Barat","Tribun Timur","Tribun Selatan","Tribun
Utara"};
int jmltiket[6]={0};
int
htiket[6]={100000,80000,65000,50000,30000,30000};
int tduduk[6]={50,100,15000,15000,5000,5000};
int
sisatiket[6]={50,100,15000,15000,5000,5000};
int
jumlahhargatotal;
//=========================================POROTOTYPE==============================================
void menu();
void admin();
void menuadmin();
void tiket();
void
ubahjmltempduduk();
void gantistadion();
void namatim();
void tampil(char);
void lapkeuangan();
void exit();
void pilihexit();
void
pilihexituser();
void cpr();
void head();
void bingkai();
void desain1();
void profil();
void saving();
void trims();
void angka();
int
ubahhargatiket();
int hitung(int);
int pesantiket(int);
//==============================================MAIN=================================================
void main(){
bingkai();
profil();
desain1();
clrscr();
bingkai();
angka();
desain1();
menu();
getch();
}
//==============================================MENU================================================
void menu(){
char pilih[1];
clrscr();
textcolor(9);
for(int a=41;a<56;a++){
gotoxy(a,15);cprintf("-");
gotoxy(a,17);cprintf("-");
gotoxy(a,18);cprintf("-");
gotoxy(a,20);cprintf("-");
Sleep(10);
}
for(int b=16;b<20;b++){
gotoxy(40,b);cprintf("|");
gotoxy(56,b);cprintf("|");
Sleep(10);
}
gotoxy(42,16);printf("1.Pesan
Tiket");
gotoxy(42,19);printf("2.Login
Admin");
gotoxy(82,10);printf("x.Exit\n");
bingkai();
head();
cpr();
gotoxy(40,23);printf("Masukkan
pilihan: ");
int status=0;
while(status==0){
gotoxy(60,23);printf(" ");
gotoxy(60,23);gets(pilih);
if(strcmp(pilih,"1")==0){
tiket();
}else
if(strcmp(pilih,"2")==0){
admin();
}else
if(strcmp(pilih,"x")==0){
exit();
}
}
}
//============================================TIKET==========================================
void tiket(){
int pilih;
clrscr();
textcolor(9);
gotoxy(30,7);cprintf (" ---------------------------------- ");
gotoxy(30,8);cprintf (" || ||");
gotoxy(30,9);cprintf ("__|
---------------------------------- |__");
gotoxy(45,8);printf("%s",strupr(stadion));
textcolor(12);
for(int a=19;a<42;a++){
gotoxy(a,15);cprintf("-");
gotoxy(a,17);cprintf("-");
Sleep(10);
}
for(int a=60;a<82;a++){
gotoxy(a,15);cprintf("-");
gotoxy(a,17);cprintf("-");
Sleep(10);
}
for(int b=16;b<17;b++){
gotoxy(18,b);cprintf("|");
gotoxy(42,b);cprintf("|");
gotoxy(59,b);cprintf("|");
gotoxy(82,b);cprintf("|");
Sleep(10);
}
gotoxy(25,16);printf("%s",tim1);
gotoxy(65,16);printf("%s",tim2);
gotoxy(50,16);printf("Vs");
textcolor(9);
for(int a=29;a<79;a++){
gotoxy(a,23);cprintf("*");
gotoxy(a,25);cprintf("*");
gotoxy(a,35);cprintf("*");
}
for(int b=23;b<36;b++){
gotoxy(29,b);cprintf("*");
gotoxy(58,b);cprintf("*");
gotoxy(78,b);cprintf("*");
Sleep(10);
}
int a=0;
while(a<6){
gotoxy(31,26+(1+a));printf("%d.
%s",a+1,tribun[a]);
gotoxy(60,26+(1+a));printf("Rp.%d,-",htiket[a]);
a++;
}
gotoxy(38,24);printf("Jenis
Tiket");
gotoxy(65,24);printf("Harga");
gotoxy(13,10);printf("11.Kembali\n");
gotoxy(80,10);printf("10.Exit\n");
bingkai();
head();
cpr();
char pilihc[1];
gotoxy(35,40);printf("Masukkan
pilihan: ");
int s=0;
while(s==0){
gotoxy(55,40);printf(" ");
gotoxy(55,40);scanf("%s",pilihc);
pilih=atoi(pilihc);
if(a>0){
if(pilih==1){
a=0;
pesantiket(a);
} else if(pilih==2){
a=1;
pesantiket(a);
}else if(pilih==3){
a=2;
pesantiket(a);
}else if(pilih==4){
a=3;
pesantiket(a);
}else if(pilih==5){
a=4;
pesantiket(a);
}else if(pilih==6){
a=5;
pesantiket(a);
}else if(pilih==11){
desain1();
menu();
}else if(pilih==10){
exit();
}
}
}
}
//======================================================PESAN
TIKET========================================
int pesantiket(int
a){
char
totalc[20],uangc[20],kembalic[20],jmltiketc[6][20];
clrscr();
int
total,uang,kembali;
textcolor(9);
//pojok kanan
for(int
x=8;x<22;x++){
gotoxy(x,8);cprintf("=");
gotoxy(x,13);cprintf("=");
Sleep(10);
}
for(int
y=9;y<13;y++){
gotoxy(7,y);cprintf("|");
gotoxy(22,y);cprintf("|");
Sleep(10);
}
//tengah
for(int
x=25;x<77;x++){
gotoxy(x,8);cprintf("*");
gotoxy(x,10);cprintf("*");
gotoxy(x,22);cprintf("*");
Sleep(10);
}
for(int
y=8;y<23;y++){
gotoxy(25,y);cprintf("*");
gotoxy(77,y);cprintf("*");
Sleep(10);
}
//pojok kiri
for(int
x=81;x<95;x++){
gotoxy(x,8);cprintf("=");
gotoxy(x,13);cprintf("=");
Sleep(10);
}
for(int
y=9;y<13;y++){
gotoxy(80,y);cprintf("|");
gotoxy(95,y);cprintf("|");
Sleep(10);
}
textcolor(9);
gotoxy(9,9);printf("Harga
Tiket");
gotoxy(10,12);printf("%d",htiket[a]);
gotoxy(82,9);printf("Sisa
Tiket");
gotoxy(45,9);printf("Tiket
%s\n\n",strupr(tribun[a]));
gotoxy(82,10);printf("%s",tribun[a]);
gotoxy(85,11);printf("%d",sisatiket[a]);
bingkai();
head();
cpr();
gotoxy(27,12);printf("Masukkan jumlah
tiket yang akan dipesan: ");
int s=0;
while(s==0){
gotoxy(68,12);scanf(" ");
gotoxy(68,12);scanf("%s",&jmltiketc[a]);
jmltiket[a]=atoi(jmltiketc[a]);
if(sisatiket[a]==0){
gotoxy(27,14);printf("Maaf Tiket
Habis");
pilihexituser();
}
while(sisatiket[a]<jmltiket[a]){
gotoxy(27,14);printf("Tiket
tidak tersedia sebanyak itu");
gotoxy(27,12);printf("Masukkan
jumlah tiket yang akan dipesan:
");
gotoxy(27,12);printf("Masukkan
jumlah tiket yang akan dipesan: ");
int s=0;
while(s==0){
gotoxy(68,12);scanf(" ");
gotoxy(68,12);scanf("%s",&jmltiketc[a]);
gotoxy(27,14);printf(" ");
jmltiket[a]=atoi(jmltiketc[a]);
if(jmltiket[a]>0){
s=1;
}
}
if(jmltiket[a]>0){
s=1;
}
}
total=htiket[a]*jmltiket[a];
sisatiket[a]=sisatiket[a]-jmltiket[a];
jumlahhargatotal=jumlahhargatotal+total;
gotoxy(27,14);printf("Total=
%d",total);
gotoxy(27,16);printf("Masukkan
uang: ");scanf("%s",uangc);
uang=atoi(uangc);
while(uang<total){
gotoxy(27,16);printf("Uang
Kurang ");
gotoxy(27,17);printf("Masukkan
uang: ");
gotoxy(27,17);printf("Masukkan
uang: ");scanf("%s",uangc);
gotoxy(27,16);printf(" ");
uang=atoi(uangc);
}
kembali=uang-total;
gotoxy(27,20);printf("Kembalian=
%d\n",kembali);
//bawah
char tanya[]="Terimakasih Sudah
Bertransaksi";
gotoxy(36,27);
printf("");
for (int e=0;tanya[e]!=NULL;e++){
printf("%c",tanya[e]);
for
(double y=0;y<=9990000;y++){
}
Sleep(10);
}
pilihexituser();
}
return 0;
}
//============================================= LOGIN
ADMIN==========================================
void admin(){
textcolor(9);
char
pass[10]={""};
clrscr();
bingkai();
head();
cpr();
textcolor(9);
gotoxy(45,23);cprintf("=====================");
gotoxy(45,24);cprintf("= = = = = = = = =
= =");
gotoxy(45,25);cprintf("= =");
gotoxy(45,26);cprintf("=
= = = = = = = = = =");
gotoxy(45,27);cprintf("=====================");
gotoxy(35,25);printf("Password:
");//cgets(pass);
int s=0;
while(s==0){
gotoxy(50,25);printf(" ");
int a=0;
char x;
gotoxy(50,25);x=getch(); //input karakter
while(x!=13){ //enter
if(x!=8){
//backspace
pass[a]=x;
printf("*");
x=getch();
}else{ //else ke-1
if(a!=0){
pass[a]=NULL;
printf("
\b\b"); //buat menghapus
a--;
x=getch();
}
}
a++;
}
strlwr(pass);
if (strcmp(pass,"aremanita")==0){
clrscr();
menuadmin();
}
}
}
//==============================================MENU
ADMIN===========================================
void menuadmin(){
clrscr();
gotoxy(22,8);printf("Selamat
datang di admin panel, anda berkuasa penuh disini\n");
char pilih[1];
textcolor(9);
for(int
x=36;x<66;x++){
gotoxy(x,15);cprintf("-");
gotoxy(x,17);cprintf("-");
gotoxy(x,19);cprintf("-");
gotoxy(x,21);cprintf("-");
gotoxy(x,23);cprintf("-");
gotoxy(x,25);cprintf("-");
gotoxy(x,27);cprintf("-");
Sleep(10);
}
for(int
y=16;y<27;y++){
gotoxy(35,y);cprintf("|");
gotoxy(66,y);cprintf("|");
Sleep(10);
}
gotoxy(37,16);printf("1.Ubah
nama stadion\n");
gotoxy(37,18);printf("2.Ubah
tim yang bertanding\n");
gotoxy(37,20);printf("3.Ubah
harga tiket\n");
gotoxy(37,22);printf("4.Ubah
jumlah tempat duduk\n");
gotoxy(37,24);printf("5.Laporan
Penjualan tiket\n");
gotoxy(37,26);printf("x.Log
out\n");
bingkai();
head();
cpr();
gotoxy(28,30);printf("Masukkan
pilihan: ");
int status=0;
while(status==0){
gotoxy(48,30);printf(" ");
gotoxy(48,30);gets(pilih);
if(strcmp(pilih,"1")==0){
gantistadion();
}else
if(strcmp(pilih,"2")==0){
namatim();
}else
if(strcmp(pilih,"3")==0){
ubahhargatiket();
}else
if(strcmp(pilih,"4")==0){
ubahjmltempduduk();
}else
if(strcmp(pilih,"5")==0){
printf("Laporan Keuangan");
lapkeuangan();
}else
if(strcmp(pilih,"x")==0){
desain1();
menu();
}
}
}
//===================================================UBAH
HARGA TIKET====================================
int
ubahhargatiket(){
clrscr();
bingkai();
head();
cpr();
int a=0;
char htiketc[6][20];
textcolor(9);
for(int
x=20;x<80;x++){
gotoxy(x,11);cprintf("=");
gotoxy(x,30);cprintf("=");
gotoxy(x,31);cprintf("=");
Sleep(10);
}
for(int
y=11;y<31;y++){
gotoxy(20,y);cprintf("*");
gotoxy(80,y);cprintf("*");
Sleep(10);
}
while(a<6){
gotoxy(25,13+(2*a+a));printf("Harga
tiket %s yang lama: ",tribun[a],htiket[a]);
gotoxy(65,13+(2*a+a));printf("%d",htiket[a]);
gotoxy(25,14+(2*a+a));printf("Masukkan
Harga tiket %s yang baru: ",tribun[a]);
int s=0;
while(s==0){
gotoxy(72,14+(2*a+a));printf(" ");
gotoxy(72,14+(2*a+a));scanf("%s",htiketc[a]);
htiket[a]=atoi(htiketc[a]);
if(htiket[a]>0){
s=1;
}
}
a++;
printf("\n");
}
gotoxy(40,35);printf("Menyimpan
");
for (int s=1;s<=5;s++){
gotoxy(50,35);
for
(int t=1;t<=5;t++){
printf(".
");
Sleep(100);
}
gotoxy(50,18);printf(" ");
}
gotoxy(37,35);printf("Data Berhasil
Disimpan ");
pilihexit();
return 0;
}
//===============================================UBAH
JUMLAH TEMPAT DUDUK=======================================
void
ubahjmltempduduk(){
clrscr();
int a=0;
char tdudukc[6][20];
bingkai();
head();
cpr();
textcolor(9);
gotoxy(40,8);printf("Mengubah
Jumlah Tempat Duduk");
gotoxy(40,12);printf("Jenis");
gotoxy(70,12);printf("Lama");
gotoxy(80,12);printf("Baru");
for(int
x=10;x<89;x++){
gotoxy(x,11);cprintf("=");
gotoxy(x,13);cprintf("=");
gotoxy(x,33);cprintf("=");
gotoxy(x,34);cprintf("=");
Sleep(10);
}
for(int
y=11;y<35;y++){
gotoxy(9,y);cprintf("|");
gotoxy(77,y);cprintf("|");
gotoxy(67,y);cprintf("|");
gotoxy(89,y);cprintf("|");
Sleep(10);
}
while(a<6){
gotoxy(12,14+(2*a+a));printf("Jumlah
Tempat duduk %s yang lama:",tribun[a]);
gotoxy(70,14+(2*a+a));printf("%d",tduduk[a]);
gotoxy(13,15+(2*a+a));printf("Masukkan
Jumlah Tempat duduk %s yang baru: ",tribun[a]);
int s=0;
while(s==0){
gotoxy(80,15+(2*a+a));printf(" ");
gotoxy(80,15+(2*a+a));scanf("%s",tdudukc[a]);
tduduk[a]=atoi(tdudukc[a]);
if(tduduk[a]>0){
s=1;
}
}
a++;
}
gotoxy(40,40);printf("Menyimpan
");
for (int s=1;s<=5;s++){
gotoxy(50,40);
for
(int t=1;t<=5;t++){
printf(".
");
Sleep(100);
}
gotoxy(50,40);printf(" ");
}
gotoxy(38,40);printf("Data Berhasil
Disimpan");
pilihexit();
}
//==========================================================================================================
void tampiltim(char
tim1[],char tim2[]){
printf("%s VS
%s",tim1,tim2);
}
//====================================================GANTI
NAMA STADION ===============================
void gantistadion(){
clrscr();
textcolor(9);
for(int
x=25;x<76;x++){
gotoxy(x,12);cprintf("O");
gotoxy(x,14);cprintf("O");
gotoxy(x,27);cprintf("O");
Sleep(10);
}
for(int
y=12;y<27;y++){
gotoxy(25,y);cprintf("O");
gotoxy(75,y);cprintf("O");
Sleep(10);
}
bingkai();
head();
cpr();
gotoxy(40,13);printf("Masukkan Nama
Stadion: ");gotoxy(45,17);gets(stadion);
gotoxy(30,19);saving();
gotoxy(40,20);printf("Data Berhasil
disimpan");
gotoxy(30,23);printf("Demo:");
gotoxy(45,25);printf("%s",strupr(stadion));
pilihexit();
}
//===================================================GANTI
NAMA TIM=======================================
void namatim(){
clrscr();
textcolor(9);
for(int
x=25;x<76;x++){
gotoxy(x,12);cprintf("O");
gotoxy(x,14);cprintf("O");
gotoxy(x,16);cprintf("O");
gotoxy(x,27);cprintf("O");
Sleep(10);
}
for(int
y=12;y<27;y++){
gotoxy(25,y);cprintf("O");
gotoxy(75,y);cprintf("O");
Sleep(10);
}
bingkai();
gotoxy(27,13);printf("Masukkan nama
tim 1: ");
gotoxy(27,15);printf("Masukkan nama
tim 2: ");
gotoxy(50,13);gets(tim1);
gotoxy(50,15);gets(tim2);
gotoxy(40,17);saving();
gotoxy(40,20);printf("Data Berhasil
disimpan");
gotoxy(30,23);printf("Demo:");
gotoxy(35,25);tampiltim(tim1,tim2);
pilihexit();
}
//================================================LAPORAN
KEUANGAN=====================================
void lapkeuangan(){
clrscr();
bingkai();
head();
cpr();
int
tiketterjual[6],totalharga[6],a=0;
long totalsemua=0;
textcolor(9);
for(int
x=13;x<89;x++){
gotoxy(x,13);cprintf("=");
gotoxy(x,31);cprintf("=");
gotoxy(x,32);cprintf("=");
Sleep(10);
}
for(int
y=13;y<32;y++){
gotoxy(13,y);cprintf("|");
gotoxy(35,y);cprintf("|");
gotoxy(46,y);cprintf("|");
gotoxy(58,y);cprintf("|");
gotoxy(76,y);cprintf("|");
gotoxy(89,y);cprintf("|");
Sleep(10);
}
gotoxy(45,8);printf("LAPORAN PENJUALAN
TIKET");
gotoxy(13,10);cprintf("=============================================================================");
gotoxy(13,11);cprintf("| Jenis Tiket | Terjual
| Harga |
Total | Sisa
|");
gotoxy(13,12);cprintf("| |
| Satuan |
Harga | |");
while (a<6){
tiketterjual[a]=jmltiket[a];
totalharga[a]=tiketterjual[a]*htiket[a];
a++;
}
a=0;
while (a<6){
gotoxy(15,14+(a+2*a));printf("%s",tribun[a]);
gotoxy(40,14+(a+2*a));printf("%d",tiketterjual[a]);
gotoxy(50,14+(a+2*a));printf("%d",htiket[a]);
gotoxy(60,14+(a+2*a));printf("%d",totalharga[a]);
gotoxy(80,14+(a+2*a));printf("%d",sisatiket[a]);
totalsemua=totalsemua+totalharga[a];
a++;
}
gotoxy(13,36);printf("TOTAL PENDAPATAN
= %d",totalsemua);
pilihexit();
}
//===============================================================PILIH
EXIT============================================
void pilihexit(){
gotoxy(10,42);printf("0.Kembali");
gotoxy(10,43);printf("x.Exit");
bingkai();
head();
cpr();
gotoxy(10,44);printf("Masukkan
pilihan: ");
int s=0;
while(s==0){
gotoxy(28,44);printf(" ");
gotoxy(28,44);gets(pilih);
if(strcmp(pilih,"0")==0){
menuadmin();
}else if(strcmp(pilih,"x")==0){
exit();
}
}
}
//===============================================================PILIH
EXIT USER========================================
void
pilihexituser(){
gotoxy(10,42);printf("0.Kembali");
gotoxy(10,43);printf("x.Exit");
bingkai();
head();
cpr();
gotoxy(10,44);printf("Masukkan
pilihan: ");
int s=0;
while(s==0){
gotoxy(28,44);printf(" ");
gotoxy(28,44);gets(pilih);
if(strcmp(pilih,"0")==0){
tiket();
}else
if(strcmp(pilih,"x")==0){
exit();
}
}
}
//===================================================================EXIT===============================================
void exit(){
clrscr();
bingkai();
trims();
desain1();
}
//=============================================BINGKAI====================================================================
void bingkai(){
for (int a=1;a<100;a++){
for (int b=1;b<=50;b++){
if (a%2==0){
textcolor(15);
if(a==1 || b==1 || a==100
|| b==50 || a==2 || b==2 || a==99 || b==49 || a==3 || b==3 || a==98 || b==48 ||
a==4 || b==4 || a==97 || b==47 || a==2 || b==5 || a==96 || b==46){
gotoxy(a,b);cprintf("%c",(char)219);
}
}else{
a%2==1;
textcolor(9);
if(a==1 || b==1 || a==100 ||
b==50 || a==2 || b==2 || a==99 || b==49 || a==3 || b==3 || a==98 || b==48 ||
a==4 || b==4 || a==97 || b==47 || a==2 || b==5 || a==96 || b==46){
gotoxy(a,b);cprintf("%c",(char)219);
}
}
}
}
}
//=========================================================================================================================
void desain1(){
for (int
a=5;a<=48;a++){
for (int b=6;b<=45;b++){
textcolor(9);
gotoxy(a,b);cprintf("%c
",(char)219);
textcolor(9);
gotoxy(97-a,50-b+1);cprintf("
%c",(char)219);
}
Sleep(10);
}
}
//===================================SAVING=================================
void saving(){
gotoxy(40,20);printf("Menyimpan ");
for (int s=1;s<=5;s++){
gotoxy(50,20);
for
(int t=1;t<=5;t++){
printf(".
");
Sleep(100);
}
gotoxy(50,18);printf(" ");
}
}
//==================================COPY
RIGHT=============================
void cpr(){
textcolor(9);
gotoxy(35,47);cprintf
("----------------------------------");
gotoxy(35,48);cprintf ("| |");
gotoxy(35,49);cprintf
("----------------------------------");
gotoxy(37,48);printf ("Copyright c
Nurmalita Sari 2014");
}
//================================HEADER========================================
void head(){
textcolor(9);
gotoxy(35,2);cprintf
("----------------------------------");
gotoxy(35,3);cprintf ("| |");
gotoxy(35,4);cprintf
("----------------------------------");
gotoxy(36,3);printf ("APLIKASI
PENJUALAN TIKET STADION");
}
//==============================================TRIMS==================================================
void trims(){
for(int
a=1;a<=5;a++){
for(int a=1;a<=3;a++){
if(a%2==0){textcolor(9);}
else{textcolor(15);}
gotoxy(10,15);cprintf(" TTTTTTTT EEEEE
RRRR II MMM MMM
A KK KK
A SSSS II HH
HH");
gotoxy(10,16);cprintf(" TT
EE RR RR II MMMM
MMMM A A KK KK
A A S II HH
HH");
gotoxy(10,17);cprintf(" TT
EEEE RRRR II MM MMMM MM AAAAA
KKK AAAAA SSSS
II HHHHHHH");
gotoxy(10,18);cprintf(" TT
EE RR RR II MM
MM MM A
A KK KK A
A S II HH HH");
gotoxy(10,19);cprintf(" TT
EEEEE RR RR II MM MM
A A KK KK A
A SSSS II HH
HH");
Sleep(200);
}
}
}
//==============================================profil===================================================
void profil(){
char judul[]=" APLIKASI PENJUALAN
TIKET STADION";
gotoxy(33,7);
printf("");
for (int x=0;judul[x]!=NULL;x++){
printf("%c",judul[x]);
for (double y=0;y<=9990000;y++){
}
}
char untuk[]=" DITUJUKAN UNTUK
PEMENUHAN TUGAS AKHIR PELATIHAN ALGORITMA ";
gotoxy(21,9);
printf("");
for (int a=0;untuk[a]!=NULL;a++){
printf("%c",untuk[a]);
for (double y=0;y<=9990000;y++){
}
}
textcolor(4);
gotoxy(31,12);cprintf(" A ");
gotoxy(31,13);cprintf(" AAA ");
gotoxy(31,14);cprintf(" AAAAA ");
gotoxy(31,15);cprintf(" A AAA A ");
gotoxy(31,16);cprintf(" AAA A AAA ");
gotoxy(31,17);cprintf(" AAAAA AAAAA ");
gotoxy(31,18);cprintf(" AAAAAAAAAAAAA ");
gotoxy(31,19);cprintf(" AA AAAAAAAAA AA ");
gotoxy(31,20);cprintf(" AAAAA AAAAA AAAAA ");
gotoxy(31,21);cprintf(" AAAAAAAA A AAAAAAAA ");
gotoxy(31,22);cprintf(" AAAAAAAAAA AAAAAAAAAA ");
gotoxy(31,23);cprintf(" AAAAAAAAAAAAAAAAA ");
gotoxy(31,24);cprintf(" AAAAAAAAAAA ");
gotoxy(31,25);cprintf(" AAAAAA ");
gotoxy(31,26);cprintf(" A ");
char oleh[]="OLEH ";
gotoxy(48,30);
printf("");
for (int b=0;oleh[b]!=NULL;b++){
printf("%c",oleh[b]);
for (double y=0;y<=9990000;y++){
}
}
char nama[]="NURMALITA SARI ";
gotoxy(43,32);
printf("");
for (int c=0;nama[c]!=NULL;c++){
printf("%c",nama[c]);
for (double y=0;y<=9990000;y++){
}
}
char nim[]="0204141026";
gotoxy(45,34);
printf("");
for (int l=0;nim[l]!=NULL;l++){
printf("%c",nim[l]);
for (double y=0;y<=9990000;y++){
}
}
char jurusan[]=" D3 MANAJEMEN
INFORMATIKA ";
gotoxy(37,36);
printf("");
for (int d=0;jurusan[d]!=NULL;d++){
printf("%c",jurusan[d]);
for (double y=0;y<=9990000;y++){
}
}
char fak[]=" FAKULTAS ILMU
KOMPUTER ";
gotoxy(38,40);
printf("");
for (int n=0;fak[n]!=NULL;n++){
printf("%c",fak[n]);
for (double y=0;y<=9990000;y++){
}
}
char univ[]=" UNIVERSITAS NASIONAL
PASIM";
gotoxy(36,42);
printf("");
for (int e=0;univ[e]!=NULL;e++){
printf("%c",univ[e]);
for (double y=0;y<=9990000;y++){
}
}
char th[]="2014";
gotoxy(48,44);
printf("");
for (int f=0;th[f]!=NULL;f++){
printf("%c",th[f]);
for (double y=0;y<=9990000;y++){
}
}
getch();
}
//===================================================ANGKA=================================================
void angka(){
for(int
a=1;a<=2;a++){
for(int a=1;a<=3;a++){
if(a%2==0){textcolor(9);}
else{textcolor(15);}
gotoxy(30,15);cprintf(" OOOOOOOOOOOOOOOOOOO ");
gotoxy(30,16);cprintf(" O ");
gotoxy(30,17);cprintf(" O ");
gotoxy(30,18);cprintf(" O ");
gotoxy(30,19);cprintf(" O ");
gotoxy(30,20);cprintf(" O ");
gotoxy(30,21);cprintf(" O ");
gotoxy(30,22);cprintf(" OOOOOOOOOOOOOOOOOOO ");
gotoxy(30,23);cprintf(" O ");
gotoxy(30,24);cprintf(" O ");
gotoxy(30,25);cprintf(" O ");
gotoxy(30,26);cprintf(" O ");
gotoxy(30,27);cprintf(" O ");
gotoxy(30,28);cprintf(" O ");
gotoxy(30,29);cprintf(" OOOOOOOOOOOOOOOOOOO ");
Sleep(200);
}
}
for(int
a=1;a<=2;a++){
for(int a=1;a<=3;a++){
if(a%2==0){textcolor(9);}
else{textcolor(15);}
gotoxy(30,15);cprintf(" O O ");
gotoxy(30,16);cprintf(" O O ");
gotoxy(30,17);cprintf(" O O ");
gotoxy(30,18);cprintf(" O O ");
gotoxy(30,19);cprintf(" O O ");
gotoxy(30,20);cprintf(" O O ");
gotoxy(30,21);cprintf(" O O ");
gotoxy(30,22);cprintf(" OOOOOOOOOOOOOOOOOOO ");
gotoxy(30,23);cprintf(" O ");
gotoxy(30,24);cprintf(" O ");
gotoxy(30,25);cprintf(" O ");
gotoxy(30,26);cprintf(" O ");
gotoxy(30,27);cprintf(" O ");
gotoxy(30,28);cprintf(" O ");
gotoxy(30,29);cprintf(" O ");
Sleep(200);
}
}
for(int
a=1;a<=2;a++){
for(int a=1;a<=3;a++){
if(a%2==0){textcolor(9);}
else{textcolor(15);}
gotoxy(30,15);cprintf(" OOOOOOOOOOOOOOOOOOO ");
gotoxy(30,16);cprintf(" O ");
gotoxy(30,17);cprintf(" O ");
gotoxy(30,18);cprintf(" O ");
gotoxy(30,19);cprintf(" O ");
gotoxy(30,20);cprintf(" O ");
gotoxy(30,21);cprintf(" O ");
gotoxy(30,22);cprintf(" OOOOOOOOOOOOOOOOOOO ");
gotoxy(30,23);cprintf(" O ");
gotoxy(30,24);cprintf(" O ");
gotoxy(30,25);cprintf(" O ");
gotoxy(30,26);cprintf(" O ");
gotoxy(30,27);cprintf(" O ");
gotoxy(30,28);cprintf(" O ");
gotoxy(30,29);cprintf(" OOOOOOOOOOOOOOOOOOO ");
Sleep(200);
}
}
for(int
a=1;a<=2;a++){
for(int a=1;a<=3;a++){
if(a%2==0){textcolor(9);}
else{textcolor(15);}
gotoxy(30,15);cprintf(" OOOOOOOOOOOOOOOOOOO ");
gotoxy(30,16);cprintf(" O ");
gotoxy(30,17);cprintf(" O ");
gotoxy(30,18);cprintf(" O ");
gotoxy(30,19);cprintf(" O ");
gotoxy(30,20);cprintf(" O ");
gotoxy(30,21);cprintf(" O ");
gotoxy(30,22);cprintf(" OOOOOOOOOOOOOOOOOOO ");
gotoxy(30,23);cprintf(" O ");
gotoxy(30,24);cprintf(" O ");
gotoxy(30,25);cprintf(" O ");
gotoxy(30,26);cprintf(" O ");
gotoxy(30,27);cprintf(" O ");
gotoxy(30,28);cprintf(" O ");
gotoxy(30,29);cprintf(" OOOOOOOOOOOOOOOOOOO ");
Sleep(200);
}
}
for(int
a=1;a<=2;a++){
for(int a=1;a<=3;a++){
if(a%2==0){textcolor(9);}
else{textcolor(15);}
gotoxy(30,15);cprintf(" O ");
gotoxy(30,16);cprintf(" O ");
gotoxy(30,17);cprintf(" O ");
gotoxy(30,18);cprintf(" O ");
gotoxy(30,19);cprintf(" O ");
gotoxy(30,20);cprintf(" O ");
gotoxy(30,21);cprintf(" O ");
gotoxy(30,22);cprintf(" O ");
gotoxy(30,23);cprintf(" O ");
gotoxy(30,24);cprintf(" O ");
gotoxy(30,25);cprintf(" O ");
gotoxy(30,26);cprintf(" O ");
gotoxy(30,27);cprintf(" O ");
gotoxy(30,28);cprintf(" O ");
gotoxy(30,29);cprintf(" O ");
Sleep(200);
}
}
for(int a=1;a<=3;a++){
if(a%2==0){textcolor(9);}
else{textcolor(15);}
gotoxy(30,15);cprintf(" OOOOOOOOOOOOOOOOOOO ");
gotoxy(30,16);cprintf(" O O ");
gotoxy(30,17);cprintf(" O O ");
gotoxy(30,18);cprintf(" O O ");
gotoxy(30,19);cprintf(" O O ");
gotoxy(30,20);cprintf(" O O ");
gotoxy(30,21);cprintf(" O O ");
gotoxy(30,22);cprintf(" O O ");
gotoxy(30,23);cprintf(" O O ");
gotoxy(30,24);cprintf(" O O ");
gotoxy(30,25);cprintf(" O O ");
gotoxy(30,26);cprintf(" O O ");
gotoxy(30,27);cprintf(" O O ");
gotoxy(30,28);cprintf(" O O ");
gotoxy(30,29);cprintf(" OOOOOOOOOOOOOOOOOOO ");
Sleep(200);
}
for(int a=1;a<=9;a++){
if(a%2==0){textcolor(9);}
else{textcolor(15);}
gotoxy(10,15);cprintf(" RRRRRRR
?????? ");
gotoxy(10,16);cprintf(" RR
RR d ? ?
");
gotoxy(10,17);cprintf(" RR
RR d ? ");
gotoxy(10,18);cprintf(" RR
RR d ? ");
gotoxy(10,19);cprintf(" RR
RR eeee aaaa d ? ");
gotoxy(10,20);cprintf(" RR
RR e e
a ddddd y
y ????
");
gotoxy(10,21);cprintf(" RRRRRRR eeeeee
aaaaaa d d
y y ? ");
gotoxy(10,22);cprintf(" RR
RR e a
a d d
y y ? ");
gotoxy(10,23);cprintf(" RR
RR eeee aaaa
dddd yyyy ");
gotoxy(10,24);cprintf("
y O ");
gotoxy(10,25);cprintf("
y ");
gotoxy(10,26);cprintf("
y ");
gotoxy(10,27);cprintf("
yyyy ");
gotoxy(10,28);cprintf("
y ");
gotoxy(10,29);cprintf("
y ");
Sleep(200);
}
gotoxy(60,33);cprintf("Press Enter to
GO");
getch();
}
tampilan laporan pejualan tiket
tampilan ubah harga tiket
Komentar
Posting Komentar