Program Pendataan
/*
*Title of Program : Pendataan
*Author : Hendi Kusnadi
*Date : 7 September 2012
*/
#include <stdio.h>
#include <conio.h>
#include <string.h>
#include <stdlib.h>
#include <windows.h>
void loading()
{
textbackground(YELLOW);
printf("\n");
printf("Loading ");
cprintf("\a \a \a \a \a \a \a \a \a \a \a \a \a \a \a \a \a \a \a \a \a \a \a \a \a \a \a \a \a ");
textbackground(BLACK);
clrscr();
}
main()
{
char nama[10];
char kelas[10];
char hari[10];
char lg;
lg='y';
while(lg=='y'||lg=='Y')
{
loading();
printf("\n ...oO0-----( Program Prabayar Pesawat )-----0Oo... ");
printf("\n ...oO0-----( STMIK TEKNOKRAT )-----0Oo... ");
printf("\n\n==============================...oo00 INPUT 00oo...=============================");
printf("\nMasukkan Pesawat [GA] : ");scanf("%s",&nama);
printf("Masukkan Kelas [bisnis/executive] : ");scanf("%s",&kelas);
printf("Masukkan Hari [senin/jumat/sabtu/minggu] : ");scanf("%s",&hari);
printf("\n\n==============================...oo00 OUTPUT 00oo...============================");
printf("\npesawat : %s",nama);
printf("\nkelas : %s",kelas);
printf("\nhari : %s\n",hari);
if(strcmp("bisnis",kelas)==0&&strcmp("senin",hari)==0&&strcmp("GA",nama)==0)
{
printf("harga : 200000");
}
else if(strcmp("executive",kelas)==0&&strcmp("jumat",hari)==0&&strcmp("GA",nama)==0)
{
printf("harga : 250000");
}
else if(strcmp("bisnis",kelas)==0&&strcmp("sabtu",hari)==0&&strcmp("GA",nama)==0)
{
printf("harga : 400000");
}
else if(strcmp("executive",kelas)==0&&strcmp("minggu",hari)==0&&strcmp("GA",nama)==0)
{
printf("harga : 450000");
}
else
{
printf("paket tidak tersedia");
}
printf("\n\ncoba lagi [y/t] : ");scanf("%s",&lg);
}
getch();
}
Silakan Download Sour Code Dan Program Aplikasinya
Disisni
*Title of Program : Pendataan
*Author : Hendi Kusnadi
*Date : 7 September 2012
*/
#include <stdio.h>
#include <conio.h>
#include <string.h>
#include <stdlib.h>
#include <windows.h>
void loading()
{
textbackground(YELLOW);
printf("\n");
printf("Loading ");
cprintf("\a \a \a \a \a \a \a \a \a \a \a \a \a \a \a \a \a \a \a \a \a \a \a \a \a \a \a \a \a ");
textbackground(BLACK);
clrscr();
}
main()
{
char nama[10];
char kelas[10];
char hari[10];
char lg;
lg='y';
while(lg=='y'||lg=='Y')
{
loading();
printf("\n ...oO0-----( Program Prabayar Pesawat )-----0Oo... ");
printf("\n ...oO0-----( STMIK TEKNOKRAT )-----0Oo... ");
printf("\n\n==============================...oo00 INPUT 00oo...=============================");
printf("\nMasukkan Pesawat [GA] : ");scanf("%s",&nama);
printf("Masukkan Kelas [bisnis/executive] : ");scanf("%s",&kelas);
printf("Masukkan Hari [senin/jumat/sabtu/minggu] : ");scanf("%s",&hari);
printf("\n\n==============================...oo00 OUTPUT 00oo...============================");
printf("\npesawat : %s",nama);
printf("\nkelas : %s",kelas);
printf("\nhari : %s\n",hari);
if(strcmp("bisnis",kelas)==0&&strcmp("senin",hari)==0&&strcmp("GA",nama)==0)
{
printf("harga : 200000");
}
else if(strcmp("executive",kelas)==0&&strcmp("jumat",hari)==0&&strcmp("GA",nama)==0)
{
printf("harga : 250000");
}
else if(strcmp("bisnis",kelas)==0&&strcmp("sabtu",hari)==0&&strcmp("GA",nama)==0)
{
printf("harga : 400000");
}
else if(strcmp("executive",kelas)==0&&strcmp("minggu",hari)==0&&strcmp("GA",nama)==0)
{
printf("harga : 450000");
}
else
{
printf("paket tidak tersedia");
}
printf("\n\ncoba lagi [y/t] : ");scanf("%s",&lg);
}
getch();
}
Silakan Download Sour Code Dan Program Aplikasinya
Disisni
Post a Comment for "Program Pendataan"