Like us on Facebook

LightBlog

Breaking

LightBlog

Search This Blog

Wednesday, November 21, 2012

Syntax Absen Sidik Jari Algoritma

Tampilan 1
 1. Gambar Di atas Merupakan tampilan Cekin pada program yang saya buat.


tampilan 2
2. Tampilan Diatas merupakan pilihan matakuliah yang akan di pilih

tampilan 3

 3. Gambar di atas merupakan tampilan output

tampilan 4

 4. gambar diatas merupakan tampilan setelah cek out.


Berikut ini adalah Syntaxnya :


#include<iostream.h>
#include<conio.h>

int main()
{

int pilih,sidik_jari;
char nama[20],jawab,y,out,answer;

coba_lagi:
cout<<"\t\t  +++ Poltek College Cirebon +++";
cout<<"\n\t\t__________________________________";
cout<<"\n\nCEK IN";
cout<<"\n\nSidik Jari : ";cin>>sidik_jari;
cout<<"Atas Nama  : ";

if(sidik_jari==1)
{
cout<< "sigit" <<endl;
}
else if(sidik_jari==2)
{
cout<< "erwanto" <<endl;
}
else if(sidik_jari==3)
{
cout<< "ria" <<endl;
}
else if(sidik_jari==4)
{
cout<< "nita" <<endl;
}
else if(sidik_jari==5)
{
cout<< "made"<<endl;
}
else
{
cout<<"Maaf!!Anda Tidak Terdaftar\n"<<endl;
}

cout<<"\nApakah Anda Ingin Melanjutkannya? Y/N ";
 cin >> answer;
 cout<<"\n";
 cout<<"\n=======================================";
 if ( answer == 'Y' || answer == 'y')
 goto Lanjutkan;
 else if (answer == 'N'||answer == 'n')
 goto cekout;

clrscr();
Lanjutkan:
cout<<"\nMata Kuliah Poltek College Cirebon";
cout<<"\n 1. Agama";
cout<<"\n 2. Algoritma";
cout<<"\n 3. Computer For Office";
cout<<"\n 4. Data Base";
cout<<"\n 5. Design Grafis";
cout<<"\n 6. English Conversation";
cout<<"\n 7. General English";
cout<<"\n 8. JAVA Mobile";
cout<<"\n 9. Pengenalan Hardware Software";
cout<<"\n10. Personal Development";
cout<<"\n\nMasukan Pilihan : ";
cin>>pilih;

clrscr();
if(pilih == 1)
{
cout<<"\nJam Masuk\t : 12:00 p.m "<< endl;
cout<<"Hari\t\t : kamis "<< endl;
cout<<"Dosen\t\t : Jaja Suteja "<< endl;
cout<<"Mata Kuliah\t : Agama "<< endl;
}
else if(pilih == 2)
{
cout<<"\nJam Masuk\t : 10:00 a.m "<< endl;
cout<<"Hari\t\t : Rabu "<< endl;
cout<<"Dosen\t\t : Erwanto "<< endl;
cout<<"Mata Kuliah\t : Algoritma "<< endl;
}
else if(pilih == 3)
{
cout<<"\nJam Masuk\t : 10:00 a.m "<< endl;
cout<<"Hari\t\t : Senin "<< endl;
cout<<"Dosen\t\t : Endah Budiastuti "<< endl;
cout<<"Mata Kuliah\t : Computer For Office "<< endl;
}
else if(pilih == 4)
{
cout<<"Jam Masuk\t : 08:00 a.m "<< endl;
cout<<"Hari\t\t : Senin "<< endl;
cout<<"Dosen\t\t : Suhati Novalia "<< endl;
cout<<"Mata Kuliah\t : Data Base "<< endl;
}
else if(pilih == 5)
{
cout<<"\nJam Masuk\t : 10:00 a.m "<< endl;
cout<<"Hari\t\t : Kamis "<< endl;
cout<<"Dosen\t\t : Agus Darmawan "<< endl;
cout<<"Mata Kuliah\t : Design Grafis "<< endl;
}
else if(pilih == 6)
{
cout<<"\nJam Masuk\t : 08:00 a.m "<< endl;
cout<<"Hari\t\t : Kamis "<< endl;
cout<<"Dosen\t\t : Supriyanto "<< endl;
cout<<"Mata Kuliah\t : English Conversation "<< endl;
}
else if(pilih == 7)
{
cout<<"\nJam Masuk\t : 09:30 a.m "<< endl;
cout<<"Hari\t\t : Jumat "<< endl;
cout<<"Dosen\t\t : Ijah Hadijah "<< endl;
cout<<"Mata Kuliah\t : General English "<< endl;
}
else if(pilih == 8)
{
cout<<"\nJam Masuk\t : 10:00 a.m "<< endl;
cout<<"Hari\t\t : Sabtu "<< endl;
cout<<"Dosen\t\t : Raden Hendra Raharja "<< endl;
cout<<"Mata Kuliah\t : JAVA Mobile "<< endl;
}
else if(pilih == 9)
{
cout<<"\nJam Masuk\t : 08:00 a.m "<< endl;
cout<<"Hari\t\t : Jumat "<< endl;
cout<<"Dosen\t\t : Asep Nurhidayat Sugiarto "<< endl;
cout<<"Mata Kuliah\t : Pengenalan Hardware Software "<< endl;
}

else if(pilih == 10)
{
cout<<"\nJam Masuk\t : 08:00 a.m "<< endl;
cout<<"Hari\t\t : Sabtu "<< endl;
cout<<"Dosen\t\t : Nur Alia Sumanti "<< endl;
cout<<"Mata Kuliah\t : Personal Development "<< endl;
}
else
{cout<<"\nPilihan Anda Tidak Tersedia";
}

cout<<"\n\nCoba Lagi?? Y/N" ;
cin>>jawab;

clrscr();
if(jawab == 'Y'||jawab == 'y' )
goto Lanjutkan;
else if (jawab == 'N'||jawab == 'n')
clrscr();
{
goto cekout;  }

cekout:
cout<<"\nTerima Kasih";


getch();
return 0;
}


Atau ingin lebih simplenya bisa download file ini => Download

No comments:

Post a Comment

Silahkan siapa tau ada yang ingin ditanyakan

SUBSCRIBE CHANNEL SIGIT BT