#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
int password;
int i,number;
cout<<"==> SELAMAT DATANG DI ATM ANANG H ^_^ <=="<<endl;
int pass = 1234;
i = 1;
do
{
cout<<"Masukkan Password Anda: "<<endl;
cin>>password;
if(password==pass)
{
cout<<"\t\t==> ANDA MASUK KE MENU UTAMA <=="<<endl;
cout<<"\t\t\tPilih Transaksi "<<endl;
cout<<"1)100.000\t\t\t\t\t\t4)750.000\t"<<endl;
cout<<"2)200.000\t\t\t\t\t\t5)1.000.000"<<endl;
cout<<"3)500.000\t\t\t\t\t\t6)1.250.000"<<endl;
cout<<"0)Cencel\t\t\t\t\t\t7)Transaksi lain"<<endl;
cin>>number;
switch(number)
{
case 1:
cout<<"100.000"<<endl;
cout<<"Silahkan ambil kartu ATM anda..."<<endl;
system("PAUSE");
return EXIT_SUCCESS;
break;
case 2:
cout<<"200.000"<<endl;
cout<<"Silahkan ambil kartu ATM anda..."<<endl;
system("PAUSE");
return EXIT_SUCCESS;
break;
case 3:
cout<<"500.000"<<endl;
cout<<"Silahkan ambil kartu ATM anda..."<<endl;
system("PAUSE");
return EXIT_SUCCESS;
break;
case 4:
cout<<"750.000"<<endl;
cout<<"Silahkan ambil kartu ATM anda..."<<endl;
system("PAUSE");
return EXIT_SUCCESS;
break;
case 5:
cout<<"1000.000"<<endl;
cout<<"Silahkan ambil kartu ATM anda..."<<endl;
system("PAUSE");
return EXIT_SUCCESS;
break;
case 6:
cout<<"1250.000"<<endl;
cout<<"Silahkan ambil kartu ATM anda..."<<endl;
system("PAUSE");
return EXIT_SUCCESS;
break;
case 0:
system("PAUSE");
return EXIT_SUCCESS;
break;
case 7:
cout<<"<=Pembelian Pulsa\t\t\tcek saldo\t=>"<<endl;
cout<<"<=Cencel\t\t\t\tTransfer\t=>"<<endl;
cout<<"Tapi mendingan ambil kartu ATM anda trus pulang..."<<endl;
cout<<"Capek cui buat programnya lo di lanjutin terus..."<<endl;
system("PAUSE");
return EXIT_SUCCESS;
break;
default:
cout<<"\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\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\a\a\a\a\a\a\a\a ERROR..."<<endl;
cout<<"Anda salah memasukkan perintah"<<endl;
cout<<"Silahkan ambil kartu ATM anda..."<<endl;
system("PAUSE");
return EXIT_SUCCESS;
break;
}
system("PAUSE");
return EXIT_SUCCESS;
}
else {
cout<<"Password anda salah,.."<<endl;
i=i+1;
}
}
while (i<=3);
cout<<"\a\a\a\a\\a\a\a\a\a\a\a\a\a\a\a\a\a\a\a ATM TERBLOKIR... !!! Segera Hubungi Customer Service 087742009123"<<endl;
system("PAUSE");
return EXIT_SUCCESS;
}
Tidak ada komentar:
Posting Komentar