tanpa basa-basi lagi,nih kukasih referensi buat kalian yang pengen nyoba rasanya kodingan,oke deh...CIKIDOT ! ! :D
KILAS BALIK MENGAPA SAYA MEMBUAT PROGRAM INI.
Nama program ini adalah DCA(Diana Central Asia) bank yang mengkhususkan untuk karyawan perushaan karet,ceritanya perusahan karet ini udah berkembang pesat makanya memiliki bank sendiri.
didalam program ini ada fitur menghitung gaji karyawan sebuah perusahaan tersebut yang menggunakan Array 2 dimensi.Karna tugas besar saya disuruh buat minimal array 2 dimensi maka terciptalah dia...he
eitss..ini program 3 bahasa loh.kalo pengen nyoba semoga kalian gak pegel ngopas nya.aku saranin buat pahamin aja deh..baru kalian ngoding sendiri..he..tapi kalo kalian ngotot mau ngopas..yaudah deh :D
runningan nya...
yang ini tampilan awalnya milih bahasa..
tampilan running untuk memasukan password.
jika kalian pilih bahasa indonesia maka tampilan awalnya seperti diatas.kalian bisa memilih menu apa yang kalian inginkan,untuk tampilan didalam menu menunya silahkan kalian copas sendiri ya untuk melihat tampilan pada menu-menu yang kalian pilih.
#include <iostream>
#include <stdlib.h>
#include <stdio.h>
#include <conio.h>
#include <iomanip>
#include <windows.h>
using namespace std;
void garis()
{
cout<<" =================================================================="<<endl;
}
void nabung()
{
cout<<endl;
cout<<" |||||||||||||||||||||||||||||||||||||||||||||||||||||||||"<<endl;
cout<<" || ||"<<endl;
cout<<" || TERIMAKASIH TELAH MENJADI NASABAH DCA ||"<<endl;
cout<<" || ||"<<endl;
cout<<" || ayo jadilah pemenang gebyar DCA dengan terus ||"<<endl;
cout<<" || bertransaksi dan rajin menabung..($)_($) ||"<<endl;
cout<<" || ||"<<endl;
cout<<" |||||||||||||||||||||||||||||||||||||||||||||||||||||||||"<<endl;
}
void iklan_trans()
{
cout<<" |||||||||||||||||||||||||||||||||||||||||||||||||||||||||"<<endl;
cout<<" || ||"<<endl;
cout<<" || TERIMA KASIH TELAH BERTRANSAKSI ||"<<endl;
cout<<" || ayo jadilah pemenang gebyar DCA dengan terus ||"<<endl;
cout<<" || bertransaksi dan rajin menabung..($)_($) ||"<<endl;
cout<<" || ||"<<endl;
cout<<" |||||||||||||||||||||||||||||||||||||||||||||||||||||||||"<<endl;
}
void menu_ulang()
{
cout<<" ........................................................."<<endl;
cout<<" | |"<<endl;
cout<<" | Ketik 1 jika ingin mengulang program |"<<endl;
cout<<" | Ketik 2 jika ingin menuju progam utama |"<<endl;
cout<<" | Ketik 3 jika ingin menutup program |"<<endl;
cout<<" | |"<<endl;
cout<<" ........................................................."<<endl;
}
int pilih;
int main()
{ system("color 37");
pbahasa:
system("cls");
int langua;
cout<< " .-------------------------------------------------------------."<<endl;
cout<< " |_________________________BANK DCA____________________________|"<<endl<<endl;
cout<<" PILIH BAHASA ANDA--CHOOSE YOUR LANGUAGE--PILIH BAHASA PIAN"<<endl;
cout<<" 1. ENGLISH <USA>"<<endl;
cout<<" 2. BAHASA <INDONESIA>"<<endl;
cout<<" 3. BASA <BANJAR>"<<endl;
cout<<endl;
cout<<" YOUR CHOICE---PILIHAN ANDA---PILIHAN PIAN : ";
cin>>langua;
switch(langua)
{
case 1:
{
float pin,nama;
int pass;
awal:
system("color 37");
system("cls");
cout<< " .-------------------------------------------------------------."<<endl;
cout<< " |_________________________BANK DCA____________________________|"<<endl;
cout<< " "<<endl;
cout<< " Enter your Password : "<<endl<<endl;
cout<<" ";cin>>pass;
if(pass==556699)
{
cout<< " User: Dianawati"<<endl;
goto baww;
}
else if(pass==12345)
{
cout<< "User: Justin bieber"<<endl;
goto baww;
}
else if(pass==89890)
{
cout<< "User: Katty perry"<<endl;
goto baww;
}
else
{
char lagi;
system("cls");
cout<<endl;
cout<<endl;
cout<<endl;
cout<<" YOUR PASSWORD IS AVAILABLE !!"<<endl;
cout<< " Try Again ?(Y/T): " ;
cin>>lagi;
if(lagi=='Y'||lagi=='y')
goto awal;
else if(lagi=='T'||lagi=='t')
goto akhir;
else
cout<<"PROGRAM ERROR !!";
}
{
baww:
system("cls");
cout<< " +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"<<endl;
cout<< " + BANK DCA (Diana Central Asia) +"<<endl;
cout<< " + PT.DIANA GUMMY GROUP COMPANY BANK EMPLOYEES ONLY +"<<endl;
cout<< " +-------------------------------------------------------------+"<<endl;
cout<< " +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"<<endl;
cout<<endl;
cout<< " .-------------------------------------------------------------."<<endl;
cout<< " | CHOOSE YOUR MENU : |"<<endl;
cout<< " | |"<<endl;
cout<< " | 1. Check the balance |"<<endl;
cout<< " | 2. Pull cash savings |"<<endl;
cout<< " | 3. Saving deposite |"<<endl;
cout<< " | 4. Count lard employees |"<<endl;
cout<< " | 5. Buy pulse |"<<endl;
cout<< " | 6. Convertible currencies |"<<endl;
cout<< " | 7. Change language |"<<endl;
cout<< " | 8. Exit |"<<endl;
cout<< " '-------------------------------------------------------------'"<<endl;
cout<< " INPUT CHOICE [1-8]..";
cin>>pilih;
system("cls");
if(pilih==1)
{
char ulang;
double saldo1=500000;
cout<<endl;
cout<<" ||||||||||||||||||||||||||||||||||||||||||||||||||||"<<endl;
cout<<" || ||"<<endl;
cout<<" || ||"<<endl;
cout<<" || ||"<<endl;
cout<<" || YOUR MONEY AMOUNT Rp. "<<saldo1<<" ||"<<endl;
cout<<" || ||"<<endl;
cout<<" || Keep your money increase..and get the PRIZE.. ||"<<endl;
cout<<" || ||"<<endl;
cout<<" ||||||||||||||||||||||||||||||||||||||||||||||||||||"<<endl;
cout<<endl;
cout<<"BACK TO BEGINNING ? [Y/T] : ";
cin>>ulang;
system("cls");
if(ulang=='Y'||ulang=='y')
goto awal;
if(ulang=='T'||ulang=='t')
goto akhir;
else
cout<<endl;
cout<<" ....................................................."<<endl;
cout<<" || ||"<<endl;
cout<<" || SORRY,YOUR INPUT ARE WRONG ||"<<endl;
cout<<" || ||"<<endl;
cout<<" ....................................................."<<endl;
}
else if(pilih==2)
{
long saldo[20],saldo1;
float ambil;
int ulang1;
saldo1=500000;
p0:
system("cls");
cout<<endl;
cout<<" |||||||||||||||||||||||||||||||||||||||||||||||||||||"<<endl;
cout<<" || ||"<<endl;
cout<<" || ||"<<endl;
cout<<" || YOUR MONEY AMOUNT Rp. "<<saldo1<<" ||"<<endl;
cout<<" || ||"<<endl;
cout<<" || ||"<<endl;
cout<<" |||||||||||||||||||||||||||||||||||||||||||||||||||||"<<endl;
cout<<endl;
cout<<" INPUT NOMINAL WOULD YOU TAKE : Rp. ";
cin>>ambil;
if(ambil>=500000)
{
cout<<endl<<endl;
cout<<" YOUR MONEY IS NOT ENOUGHT "<<endl;
}
if(ambil<=500000)
{
saldo[20]=saldo1-ambil;
system("cls");
cout<<endl;
garis();
cout<<endl;
cout<<" YOUR MONEY AMOUNT : Rp. "<<saldo[20]<<endl;
cout<<endl;
}
garis();
cout<<endl;
cout<<"......................................................."<<endl;
cout<<"| |"<<endl;
cout<<"| Type 1 If You want to Repeat program |"<<endl;
cout<<"| Type 2 If You Want to go the main program |"<<endl;
cout<<"| Type 3 If you want to Exit |"<<endl;
cout<<"| |"<<endl;
cout<<"......................................................."<<endl;
cout<<" INPUT YOUR CHOICE : ";
cin>>ulang1;
if(ulang1==1)
goto p0;
if(ulang1==2)
goto awal;
if(ulang1==3)
goto akhir;
else
cout<<" ....................................................."<<endl;
cout<<" || ||"<<endl;
cout<<" || SORRY,YOUR INPUT ARE WRONG ||"<<endl;
cout<<" || ||"<<endl;
cout<<" ....................................................."<<endl; }
else if(pilih==3)
{
double saldo1=500000,duit;
long jumlah[20];
int ulang2;
p10:
system("cls");
cout<<" |||||||||||||||||||||||||||||||||||||||||||||||||||||"<<endl;
cout<<" || ||"<<endl;
cout<<" || ||"<<endl;
cout<<" || YOUR MONEY AMOUNT : Rp. "<<saldo1<<" ||"<<endl;
cout<<" || ||"<<endl;
cout<<" || ||"<<endl;
cout<<" |||||||||||||||||||||||||||||||||||||||||||||||||||||"<<endl;
cout<<endl;
cout<<" INPUT YOUR MONEY TO ADDED :Rp. ";
cin>>duit;
system("cls");
jumlah[20]=saldo1+duit;
cout<<endl;
cout<<" |||||||||||||||||||||||||||||||||||||||||||||||||||||||||"<<endl;
cout<<" || ||"<<endl;
cout<<" || YOUR MONEY ALREADY ADDED ||"<<endl;
cout<<" || THE REST OF YOUR MONEY : Rp. "<<jumlah[20]<<" ||"<<endl;
cout<<" || ||"<<endl;
cout<<" || ||"<<endl;
cout<<" |||||||||||||||||||||||||||||||||||||||||||||||||||||||||"<<endl;
cout<<endl;
garis();
cout<<endl;
cout<<"......................................................."<<endl;
cout<<"| |"<<endl;
cout<<"| Type 1 If You want to Repeat program |"<<endl;
cout<<"| Type 2 If You Want to go the main program |"<<endl;
cout<<"| Type 3 If you want to Exit |"<<endl;
cout<<"| |"<<endl;
cout<<"......................................................."<<endl;
cout<<"INPUT YOUR CHOICE : ";
cin>>ulang2;
if(ulang2==1)
goto p10;
if(ulang2==2)
goto awal;
if(ulang2==3)
goto akhir;
else
cout<<" ....................................................."<<endl;
cout<<" || ||"<<endl;
cout<<" || SORRY,YOUR INPUT ARE WRONG ||"<<endl;
cout<<" || ||"<<endl;
cout<<" ....................................................."<<endl;
}
else if(pilih==4)
{
int baris,kolom;
char nama[10][10];
int data_jual[10][10];
long gaj;
int ulang3;
p11:
cout<<endl;
cout<< " ========================================================="<<endl;
cout<< " COUNT PAYMENT TO EMPLOYEES PT.Diana Gummy Group Company"<<endl;
cout<< " ========================================================="<<endl;
cout<<"Input How Money Employees you will Count : ";
cin>>baris;
cout<<"Input Number 7 to Count Your Payment [7 Days] : ";
cin>>kolom;
cout<<endl;
for(int i=1; i<=baris; i++)
{
cout<<"Name of Employees in - "<<i<<" : ";
cin>>nama[i];
}
cout<<endl;
for(int i=1; i<=baris; i++)
{
for(int j=1; j<=kolom; j++)
{
cout<<"Employees.Day in- "<<i<<"."<<j<<endl;
cout<<"Rubber/Kg : ";
cin>>data_jual[i][j];
}
cout<<endl;
}
cout<<endl;
system("cls");
garis ();
cout<<" COUNT LARD EMPLOYESS PT.Diana Gummy Group Company"<<endl;
cout<<"----------------------------------------------------------------------------"<<endl;
cout<<"Num Name Rubber/Kg per Days Sum your payments "<<endl;
cout<<" -----------------------------------------------------------------"<<endl;
cout<<" 1 2 3 4 5 6 7 "<<endl;
cout<<"----------------------------------------------------------------------------"<<endl;
//untuk isian dalam tabel
for(int i=1; i<=baris; i++)
{
cout<<setiosflags(ios::left)<<setw(4)<<i;
cout<<setiosflags(ios::left)<<setw(7)<<nama[i];
int jum=0;
for(int j=1; j<=kolom; j++)
{
cout<<setiosflags(ios::left)<<setw(6);
cout<<data_jual[i][j];
jum=jum+data_jual[i][j];
}
cout<<setiosflags(ios::left)<<setw(13)<<jum;
if(jum<=10)
{gaj=jum*3000;
}
else
{
gaj=(10*3000)+((jum-10)*5000);
}
cout<<setiosflags(ios::left)<<setw(6)<<gaj;
cout<<endl;
cout<<"----------------------------------------------------------------------------";
cout<<endl;
}
cout<<endl;
cout<<"......................................................."<<endl;
cout<<"| |"<<endl;
cout<<"| Type 1 If You want to Repeat program |"<<endl;
cout<<"| Type 2 If You Want to go the main program |"<<endl;
cout<<"| Type 3 If you want to Exit |"<<endl;
cout<<"| |"<<endl;
cout<<"......................................................."<<endl;
cout<<"Input Your Choice : ";
cin>>ulang3;
if(ulang3==1)
goto p11;
if(ulang3==2)
goto atas;
if(ulang3==3)
goto bawah;
else
cout<<endl;
cout<<" ....................................................."<<endl;
cout<<" || ||"<<endl;
cout<<" || SORRY,YOUR INPUT IS WRONG ||"<<endl;
cout<<" || ||"<<endl;
cout<<" ....................................................."<<endl;
}
else if(pilih==5)
{
int nominal,hrg_pls;
string pulsa;
int a;
int ulang4;
p12:
system("cls");
cout<<endl;
garis();
cout<<" BUY PULSE FOR ALL OPERATOR "<<endl;
garis();
cout<<" | PULSE | PRICE |"<<endl;
cout<<" |----------------------------|"<<endl;
cout<<" | 5000 | Rp.5500.00 |"<<endl;
cout<<" | 10.000 | Rp.10.500.00|"<<endl;
cout<<" | 15.000 | Rp.15.500.00|"<<endl;
cout<<" | | |"<<endl;
cout<<" | multiples.ect 5000 |"<<endl;
cout<<" |____________________________|"<<endl;
cout<<endl;
cout<<"CHOSE YOUR NUMBER PHONE TIPE :"<<endl;
cout<<"1.TELKOMSEL"<<endl;
cout<<"2.XL"<<endl;
cout<<"3.AXIS"<<endl;
cout<<"4.INDOSAT"<<endl;
cout<<"_________________________________________________"<<endl;
cout<<"INPUT YOUR CHOICE [1-4] :";
cin>>a;
cout<<"INPUT THE NUMBER THAT WILL YOU FILL A PULSE"<<endl;
cin>>pulsa;
cout<<"INPUT NOMINAL PULSES THAT YOU WILL FILL(MULTIPLES 5000)"<<endl;
cin>>nominal;
system("cls");
hrg_pls=500+nominal;
cout<<endl;
garis();
cout<<endl;
cout<<" TRANSACTION SUCCESSFULLY WITH NUMBER PHONE "<<pulsa<<" AMOUNTS "<<nominal<<endl;
cout<<" THE PRICE PULSES THAT YOU PAY WORTH Rp."<<hrg_pls<<endl;
garis();
iklan_trans();
cout<<endl;
cout<<"......................................................."<<endl;
cout<<"| |"<<endl;
cout<<"| Type 1 If You want to Repeat program |"<<endl;
cout<<"| Type 2 If You Want to go the main program |"<<endl;
cout<<"| Type 3 If you want to Exit |"<<endl;
cout<<"| |"<<endl;
cout<<"......................................................."<<endl;
cout<<"CHOSE YOUR CHOICE : ";
cin>>ulang4;
if(ulang4==1)
goto p12;
if(ulang4==2)
goto awal;
if(ulang4==3)
goto akhir;
else
system("cls");
cout<<endl;
cout<<" ....................................................."<<endl;
cout<<" || ||"<<endl;
cout<<" || SORRY,YOUR INPUT ARE WRONG ||"<<endl;
cout<<" || ||"<<endl;
cout<<" ....................................................."<<endl;
}
else if(pilih==6)
{
long uang;
long hasil;
int pili,ulang5;
p13:
system("cls");
cout<<endl;
cout<<"__________________________________________________"<<endl;
cout<<" KONVERSION RUPIAH TO OTHER CURRENCIES "<<endl;
cout<<"--------------------------------------------------"<<endl;
cout<<" Choice currency : "<<endl;
cout<<" 1. USD (Dollar Amerika) "<<endl;
cout<<" 2. AUD (Dollar Australia) "<<endl;
cout<<" 3. JPY (Yen Jepang) "<<endl;
cout<<" 4. EUR (Euro) "<<endl;
cout<<" 5. Info "<<endl;
cout<<" "<<endl;
cout<<endl;
cout<<"INPUT YOUR CHOICE : "; cin>>pili;
cout<<endl;
if(pili==1)
{
float uang;
float hasil;
cout<<"Input your money : Rp."; cin>>uang;
hasil=uang*0.0007;
cout<<"----------------------------------------------------------"<<endl;
cout<<" Nilai Rp."<<uang<<" Equal to "<<hasil<<" U$"<<endl;
cout<<"----------------------------------------------------------"<<endl;
}
else if(pili==2)
{
float uang;
float hasil;
cout<<"Input your money : Rp."; cin>>uang;
hasil=uang*0.0001;
cout<<"----------------------------------------------------------"<<endl;
cout<<" Amount Rp."<<uang<<" Equal to "<<hasil<<" AU$"<<endl;
cout<<"----------------------------------------------------------"<<endl;
}
else if(pili==3)
{
float uang;
float hasil;
cout<<"Input your money : Rp."; cin>>uang;
hasil=uang*0.01;
cout<<"-----------------------------------------------------------"<<endl;
cout<<" Amount Rp."<<uang<<" Equal to "<<hasil<<" YEN"<<endl;
cout<<"-----------------------------------------------------------"<<endl;
}
else if(pili==4)
{
float uang;
float hasil;
cout<<"Input your money : Rp."; cin>>uang;
hasil=uang*0.0001;
cout<<"----------------------------------------------------------"<<endl;
cout<<" Nilai Rp."<<uang<<" Setara dengan Rp."<<hasil<<" POUNDSTERLING"<<endl;
cout<<"----------------------------------------------------------"<<endl;
}
else if(pili==5)
{
system("cls");
cout<<"Convertion Foreign currency to Rupiah(IDR)"<<endl;
cout<<"--------------------------------"<<endl;
cout<<"1 USD = 13475 IDR"<<endl;
cout<<"1 AUD = 10075 IDR"<<endl;
cout<<"1 JPY = 125 IDR"<<endl;
cout<<"1 EUR = 14250 IDR"<<endl;
}
cout<<endl;
cout<<"......................................................."<<endl;
cout<<"| |"<<endl;
cout<<"| Type 1 If You want to Repeat program |"<<endl;
cout<<"| Type 2 If You Want to go the main program |"<<endl;
cout<<"| Type 3 If you want to Exit |"<<endl;
cout<<"| |"<<endl;
cout<<"......................................................."<<endl;
cout<<endl;
cout<<"YOUR CHOICE : ";
cin>>ulang5;
if(ulang5==1)
goto p13;
if(ulang5==2)
goto awal;
if(ulang5==3)
goto akhir;
else
cout<<endl;
cout<<" ....................................................."<<endl;
cout<<" || ||"<<endl;
cout<<" || SORRY,YOUR INPUT ARE WRONG ||"<<endl;
cout<<" || ||"<<endl;
cout<<" ....................................................."<<endl;
}
else if(pilih==7)
{
cout<<endl;
goto pbahasa;
}
else if(pilih==8)
{
nabung();
}
else
{cout<<endl;
cout<<" ....................................................."<<endl;
cout<<" || ||"<<endl;
cout<<" || SORRY,YOUR INPUT ARE WRONG ||"<<endl;
cout<<" || ||"<<endl;
cout<<" ....................................................."<<endl;
akhir:
cout<<endl;
nabung();
}
getch();
break;
}
case 2:
{
float pin,nama;
int pass;
atas:
system("color 37");
system("cls");
cout<< " .-------------------------------------------------------------."<<endl;
cout<< " |_________________________BANK DCA____________________________|"<<endl;
cout<< " "<<endl;
cout<< " Silakan Masukan Password Anda : "<<endl;
cout<<" ";cin>>pass;
if(pass==556699)
{
cout<< " User: Dianawati"<<endl;
goto down;
}
else if(pass==12345)
{
cout<< "User: Justin bieber"<<endl;
goto down;
}
else if(pass==89890)
{
cout<< "User: Katty perry"<<endl;
goto down;
}
else
{
char lagi;
system("cls");
cout<<endl;
cout<<endl;
cout<<endl;
cout<<" PASSWORD ANDA SALAH!!"<<endl;
cout<< " Ingin Mencoba lagi?(Y/T): " ;
cin>>lagi;
if(lagi=='Y'||lagi=='y')
goto atas;
else if(lagi=='T'||lagi=='t')
goto bawah;
}
{
down:
system("cls");
cout<< " +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"<<endl;
cout<< " + BANK DCA (Diana Central Asia) +"<<endl;
cout<< " + BANK KHUSUS KARYAWAN PT.DIANA GUMMY GROUP COMPANY +"<<endl;
cout<< " +-------------------------------------------------------------+"<<endl;
cout<< " +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"<<endl;
cout<<endl;
cout<< " .-------------------------------------------------------------."<<endl;
cout<< " | PILIH MENU YANG ANDA INGIN |"<<endl;
cout<< " | |"<<endl;
cout<< " | 1. Cek Saldo |"<<endl;
cout<< " | 2. Tarik tunai tabungan |"<<endl;
cout<< " | 3. Setor tabungan |"<<endl;
cout<< " | 4. Hitung gajih karyawan |"<<endl;
cout<< " | 5. Beli pulsa |"<<endl;
cout<< " | 6. Konversi mata uang |"<<endl;
cout<< " | 7. Ganti bahasa |"<<endl;
cout<< " | 8. Keluar |"<<endl;
cout<< " '-------------------------------------------------------------'"<<endl;
cout<< " MASUKAN PILIHAN [1-8]..";
cin>>pilih;
system("cls");
if(pilih==1)
{
char ulang;
double saldo1=500000;
cout<<endl;
cout<<" ||||||||||||||||||||||||||||||||||||||||||||||||||||"<<endl;
cout<<" || ||"<<endl;
cout<<" || ||"<<endl;
cout<<" || ||"<<endl;
cout<<" || JUMLAH SALDO ANDA Rp. "<<saldo1<<" ||"<<endl;
cout<<" || ||"<<endl;
cout<<" || TINGKATKAN TERUS SALDO ANDA..dapati HADIAHNYA..||"<<endl;
cout<<" || ||"<<endl;
cout<<" ||||||||||||||||||||||||||||||||||||||||||||||||||||"<<endl;
cout<<endl;
cout<<"INGIN KEMBALI KE AWAL ? [Y/T] : ";
cin>>ulang;
system("cls");
if(ulang=='Y'||ulang=='y')
goto atas;
if(ulang=='T'||ulang=='t')
goto bawah;
else
cout<<endl;
cout<<" ....................................................."<<endl;
cout<<" || ||"<<endl;
cout<<" || MAAF,PERINTAH YANG ANDA MASUKAN SALAH ||"<<endl;
cout<<" || ||"<<endl;
cout<<" ....................................................."<<endl;
}
else if(pilih==2)
{
long saldo[20],saldo1,ambil;
int ulang1;
saldo1=500000;
p2:
cout<<endl;
system("cls");
cout<<" |||||||||||||||||||||||||||||||||||||||||||||||||||||"<<endl;
cout<<" || ||"<<endl;
cout<<" || ||"<<endl;
cout<<" || JUMLAH SALDO ANDA Rp. "<<saldo1<<" ||"<<endl;
cout<<" || ||"<<endl;
cout<<" || ||"<<endl;
cout<<" |||||||||||||||||||||||||||||||||||||||||||||||||||||"<<endl;
cout<<endl;
cout<<" MASUKAN NOMINAL YANG AKAN ANDA AMBIL: Rp. ";
cin>>ambil;
if(ambil>=500000)
{
system("cls");
cout<<endl<<endl;
cout<<" SALDO ANDA TIDAK CUKUP"<<endl;
cout<<endl;
}
if(ambil<=500000)
{
saldo[20]=saldo1-ambil;
system("cls");
cout<<endl;
garis();
cout<<endl;
cout<<" SISA SALDO ANDA : Rp. "<<saldo[20]<<endl;
cout<<endl;
}
menu_ulang();
cout<<"MASUKAN PILIHAN : ";
cin>>ulang1;
if(ulang1==1)
goto p2;
if(ulang1==2)
goto atas;
if(ulang1==3)
goto bawah;
else
cout<<endl;
cout<<" ....................................................."<<endl;
cout<<" || ||"<<endl;
cout<<" || MAAF,PERINTAH YANG ANDA MASUKAN SALAH ||"<<endl;
cout<<" || ||"<<endl;
cout<<" ....................................................."<<endl;
}
else if(pilih==3)
{
long saldo1=500000;
long duit,jumlah[20];
int ulang2;
p3:
system("cls");
cout<<" |||||||||||||||||||||||||||||||||||||||||||||||||||||"<<endl;
cout<<" || ||"<<endl;
cout<<" || ||"<<endl;
cout<<" || JUMLAH SALDO ANDA ADALAH : Rp. "<<saldo1<<" ||"<<endl;
cout<<" || ||"<<endl;
cout<<" || ||"<<endl;
cout<<" |||||||||||||||||||||||||||||||||||||||||||||||||||||"<<endl;
cout<<endl;
cout<<" MASUKAN JUMLAH UANG YANG AKAN ANDA TABUNG :Rp. ";
cin>>duit;
system("cls");
jumlah[20]=saldo1+duit;
cout<<endl;
cout<<" |||||||||||||||||||||||||||||||||||||||||||||||||||||||||"<<endl;
cout<<" || ||"<<endl;
cout<<" || SALDO ANDA TELAH DITAMBAHKAN ||"<<endl;
cout<<" || SISA SALDO ANDA SENILAI : Rp. "<<jumlah[20]<<" ||"<<endl;
cout<<" || ||"<<endl;
cout<<" || ||"<<endl;
cout<<" |||||||||||||||||||||||||||||||||||||||||||||||||||||||||"<<endl;
cout<<endl;
garis();
cout<<endl;
menu_ulang();
cout<<"MASUKAN PILIHAN : ";
cin>>ulang2;
if(ulang2==1)
goto p3;
if(ulang2==2)
goto atas;
if(ulang2==3)
goto bawah;
else
cout<<endl;
cout<<" ....................................................."<<endl;
cout<<" || ||"<<endl;
cout<<" || MAAF,PERINTAH YANG ANDA MASUKAN SALAH ||"<<endl;
cout<<" || ||"<<endl;
cout<<" ....................................................."<<endl;
}
else if(pilih==4)
{
int baris,kolom;
char nama[10][10];
int data_jual[10][10];
long gaj;
int ulang3;
p7:
cout<<endl;
cout<< " ======================================================="<<endl;
cout<< " MENGHITUNG GAJI KARYAWAN PT.Diana Gummy Group Company"<<endl;
cout<< " ======================================================="<<endl;
cout<<" Masukan Banyak karyawan Yang Ingin dihitung : ";
cin>>baris;
cout<<" Masukan Angka 7 Untuk Hitung Sekali Gajihan [7 hari] : ";
cin>>kolom;
cout<<endl;
for(int i=1; i<=baris; i++)
{
cout<<"Nama Karyawan ke - "<<i<<" : ";
cin>>nama[i];
}
cout<<endl;
for(int i=1; i<=baris; i++)
{
for(int j=1; j<=kolom; j++)
{
cout<<"Kar/Hari Ke- "<<i<<"."<<j<<endl;
cout<<"Jumlah Karet/kg : ";
cin>>data_jual[i][j];
}
cout<<endl;
}
cout<<endl;
system("cls");
cout<<" LAPORAN PENGGAJIHAN"<<endl;
cout<<"----------------------------------------------------------------------------"<<endl;
cout<<"No Nama HARI Jumlah Kg Gaji Terima "<<endl;
cout<<" -----------------------------------------------------------------"<<endl;
cout<<" 1 2 3 4 5 6 7 "<<endl;
cout<<"----------------------------------------------------------------------------"<<endl;
for(int i=1; i<=baris; i++)
{
cout<<setiosflags(ios::left)<<setw(4)<<i;
cout<<setiosflags(ios::left)<<setw(7)<<nama[i];
int jum=0;
for(int j=1; j<=kolom; j++)
{
cout<<setiosflags(ios::left)<<setw(6);
cout<<data_jual[i][j];
jum=jum+data_jual[i][j];
}
cout<<setiosflags(ios::left)<<setw(13)<<jum;
if(jum<=10)
{gaj=jum*3000;
}
else
{
gaj=(10*3000)+((jum-10)*5000);
}
cout<<setiosflags(ios::left)<<setw(6)<<gaj;
cout<<endl;
}
cout<< "----------------------------------------------------------------------------"<<endl;
cout<<endl;
menu_ulang();
cout<<"MASUKAN PILIHAN : ";
cin>>ulang3;
if(ulang3==1)
goto p7;
if(ulang3==2)
goto atas;
if(ulang3==3)
goto bawah;
else
cout<<endl;
cout<<" ....................................................."<<endl;
cout<<" || ||"<<endl;
cout<<" || MAAF,PERINTAH YANG ANDA MASUKAN SALAH ||"<<endl;
cout<<" || ||"<<endl;
cout<<" ....................................................."<<endl;
}
else if(pilih==5)
{
int nominal,hrg_pls;
string pulsa;
int a;
int ulang4;
p8:
system("cls");
cout<<endl;
garis();
cout<<" BELI PULSA KE SEMUA OPERATOR "<<endl;
garis();
cout<<" | PULSA | HARGA |"<<endl;
cout<<" |----------------------------|"<<endl;
cout<<" | 5000 | Rp.5500.00 |"<<endl;
cout<<" | 10.000 | Rp.10.500.00|"<<endl;
cout<<" | 15.000 | Rp.15.500.00|"<<endl;
cout<<" | | |"<<endl;
cout<<" | dst.Kelipatan 5000 |"<<endl;
cout<<" |____________________________|"<<endl;
cout<<endl;
cout<<"PILIH JENIS NOMER ANDA :"<<endl;
cout<<"1.TELKOMSEL"<<endl;
cout<<"2.XL"<<endl;
cout<<"3.EXIS"<<endl;
cout<<"4.INDOSAT"<<endl;
cout<<"_________________________________________________"<<endl;
cout<<"Masukan pilihan [1-4] :";
cin>>a;
cout<<"MASUKAN NOMER YANG AKAN ANDA ISI PULSA"<<endl;
cin>>pulsa;
cout<<"MASUKAN NOMINAL PULSA YANG AKAN ANDA ISI(KELIPATAN 5000)"<<endl;
cin>>nominal;
system("cls");
hrg_pls=500+nominal;
cout<<endl;
garis();
cout<<endl;
cout<<" TRANSAKSI BERHASIL DENGAN NOMER HP "<<pulsa<<" ,SENILAI "<<nominal<<endl;
cout<<" HARGA PULSA YANG ANDA BAYAR SENILAI Rp."<<hrg_pls<<endl;
garis();
iklan_trans();
cout<<endl;
menu_ulang();
cout<<"MASUKAN PILIHAN : ";
cin>>ulang4;
if(ulang4==1)
goto p8;
if(ulang4==2)
goto atas;
if(ulang4==3)
goto bawah;
else
system("cls");
cout<<endl;
cout<<" ....................................................."<<endl;
cout<<" || ||"<<endl;
cout<<" || MAAF,PERINTAH YANG ANDA MASUKAN SALAH ||"<<endl;
cout<<" || ||"<<endl;
cout<<" ....................................................."<<endl;
}
else if(pilih==6)
{
long uang;
long hasil;
int pili,ulang5;
p9:
system("cls");
cout<<endl;
cout<<"___________________________________________________"<<endl;
cout<<" KONVERSI MATA UANG RUPIAH KE MATA UANG LAINYA "<<endl;
cout<<"---------------------------------------------------"<<endl;
cout<<" Pilihan Mata Uang : "<<endl;
cout<<" 1. USD (Dollar Amerika) "<<endl;
cout<<" 2. AUD (Dollar Australia) "<<endl;
cout<<" 3. JPY (Yen Jepang) "<<endl;
cout<<" 4. EUR (Euro) "<<endl;
cout<<" 5. Info "<<endl;
cout<<" "<<endl;
cout<<endl;
cout<<"Masukkan Pilihan Anda : "; cin>>pili;
cout<<endl;
if(pili==1)
{
float uang;
float hasil;
cout<<"Masukkan Nilai Uang : Rp."; cin>>uang;
hasil=uang*0.0007;
cout<<"----------------------------------------------------------"<<endl;
cout<<" Nilai Rp."<<uang<<" Setara dengan "<<hasil<<" U$"<<endl;
cout<<"----------------------------------------------------------"<<endl;
}
else if(pili==2)
{
float uang;
float hasil;
cout<<"Masukkan Nilai Uang : Rp."; cin>>uang;
hasil=uang*0.0001;
cout<<"----------------------------------------------------------"<<endl;
cout<<" Nilai Rp."<<uang<<" Setara dengan "<<hasil<<" AU$"<<endl;
cout<<"----------------------------------------------------------"<<endl;
}
else if(pili==3)
{
float uang;
float hasil;
cout<<"Masukkan Nilai Uang : Rp."; cin>>uang;
hasil=uang*0.01;
cout<<"-----------------------------------------------------------"<<endl;
cout<<" Nilai Rp"<<uang<<" Setara dengan "<<hasil<<" YEN"<<endl;
cout<<"-----------------------------------------------------------"<<endl;
}
else if(pili==4)
{
float uang;
float hasil;
cout<<"Masukkan Nilai Uang : Rp."; cin>>uang;
hasil=uang*0.0001;
cout<<"----------------------------------------------------------"<<endl;
cout<<" Nilai Rp."<<uang<<" Setara dengan Rp."<<hasil<<" POUNDSTERLING"<<endl;
cout<<"----------------------------------------------------------"<<endl;
}
else if(pili==5)
{
system("cls");
cout<<"Nilai tukar Asing ke Rupiah(IDR)"<<endl;
cout<<"--------------------------------"<<endl;
cout<<"1 USD = 13475 IDR"<<endl;
cout<<"1 AUD = 10075 IDR"<<endl;
cout<<"1 JPY = 125 IDR"<<endl;
cout<<"1 EUR = 14250 IDR"<<endl;
}
cout<<endl;
cout<<"......................................................."<<endl;
cout<<"| |"<<endl;
cout<<"| Ketik 1 Jika Ingin Mengulang Program |"<<endl;
cout<<"| Ketik 2 Jika Ingin Menuju Program Utama |"<<endl;
cout<<"| Ketik 3 Jika Ingin Menutup Program |"<<endl;
cout<<"| |"<<endl;
cout<<"......................................................."<<endl;
cout<<endl;
cout<<"PILIHAN ANDA : ";
cin>>ulang5;
if(ulang5==1)
goto p9;
if(ulang5==2)
goto atas;
if(ulang5==3)
goto bawah;
else
cout<<endl;
cout<<" ....................................................."<<endl;
cout<<" || ||"<<endl;
cout<<" || MAAF,PERINTAH YANG ANDA MASUKAN SALAH ||"<<endl;
cout<<" || ||"<<endl;
cout<<" ....................................................."<<endl;
}
else if(pilih==7)
{
cout<<endl;
goto pbahasa;
}
else if(pilih==8)
{
nabung();
}
else
{cout<<endl;
cout<<" ....................................................."<<endl;
cout<<" || ||"<<endl;
cout<<" || MAAF,PERINTAH YANG ANDA MASUKAN SALAH ||"<<endl;
cout<<" || ||"<<endl;
cout<<" ....................................................."<<endl;
bawah:
cout<<endl;
nabung();
}
getch();
break;
}
case 3:
{
float pin,nama;
int pass;
ahatas:
system("color 37");
system("cls");
cout<< " .-------------------------------------------------------------."<<endl;
cout<< " |_________________________BANK DCA____________________________|"<<endl;
cout<< " "<<endl;
cout<< " Picik kata sandi pian : "<<endl;
cout<<" ";cin>>pass;
if(pass==556699)
{
cout<< " User: Dianawati"<<endl;
goto dawon;
}
else if(pass==12345)
{
cout<< "User: Justin bieber"<<endl;
goto dawon;
}
else if(pass==89890)
{
cout<< "User: Katty perry"<<endl;
goto dawon;
}
else
{
char lagi;
system("cls");
cout<<endl;
cout<<endl;
cout<<endl;
cout<<" KATA SANDI PIAN KADA BUJUR!!"<<endl;
cout<< " Handak Mancuba Lagi Kah ?(Y/T): " ;
cin>>lagi;
if(lagi=='Y'||lagi=='y')
goto ahatas;
else if(lagi=='T'||lagi=='t')
goto bahawah;
}
{
dawon:
system("cls");
cout<< " +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"<<endl;
cout<< " + BANK DCA (Diana Central Asia) +"<<endl;
cout<< " + BANK GASAN KARYAWAN PT.DIANA GUMMY GROUP COMPANY +"<<endl;
cout<< " +-------------------------------------------------------------+"<<endl;
cout<< " +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"<<endl;
cout<<endl;
cout<< " .-------------------------------------------------------------."<<endl;
cout<< " | PILIH MENU NANG DIKAHANDAKI |"<<endl;
cout<< " | |"<<endl;
cout<< " | 1. Melihati Saldo Wara |"<<endl;
cout<< " | 2. Meambil Duit |"<<endl;
cout<< " | 3. Manimbun Duit |"<<endl;
cout<< " | 4. Bahitung gajihan karyawan |"<<endl;
cout<< " | 5. Nukar pulsa |"<<endl;
cout<< " | 6. Handak Tahu Barapa Mun Bahurup Duit Asing |"<<endl;
cout<< " | 7. Ubah Bahasa |"<<endl;
cout<< " | 8. Ampihan |"<<endl;
cout<< " '-------------------------------------------------------------'"<<endl;
cout<< " PILIH NANG DIKAHANDAKI [1-8]..";
cin>>pilih;
system("cls");
if(pilih==1)
{
char ulang;
double saldo1=500000;
cout<<endl;
cout<<" ||||||||||||||||||||||||||||||||||||||||||||||||||||"<<endl;
cout<<" || ||"<<endl;
cout<<" || ||"<<endl;
cout<<" || ||"<<endl;
cout<<" || DUIT PIAN ISINYA Rp. "<<saldo1<<" ||"<<endl;
cout<<" || ||"<<endl;
cout<<" || KASI PIAN MANABUNG TARUS..kupina KULIHAN HADIAH||"<<endl;
cout<<" || ||"<<endl;
cout<<" ||||||||||||||||||||||||||||||||||||||||||||||||||||"<<endl;
cout<<endl;
cout<<"HANDAK KA PAMULAAN KAH ? [Y/T] : ";
cin>>ulang;
system("cls");
if(ulang=='Y'||ulang=='y')
goto ahatas;
if(ulang=='T'||ulang=='t')
goto bahawah;
else
cout<<endl;
cout<<" ....................................................."<<endl;
cout<<" || ||"<<endl;
cout<<" || MAAFLAH,NANG PIAN PICIK TU SALAH NAH ||"<<endl;
cout<<" || ||"<<endl;
cout<<" ....................................................."<<endl;
}
else if(pilih==2)
{
long saldo[20],saldo1,ambil;
int ulang1;
saldo1=500000;
p111:
system("cls");
cout<<endl;
cout<<" |||||||||||||||||||||||||||||||||||||||||||||||||||||"<<endl;
cout<<" || ||"<<endl;
cout<<" || ||"<<endl;
cout<<" || PIAN BAISI DUIT Rp. "<<saldo1<<" ||"<<endl;
cout<<" || ||"<<endl;
cout<<" || ||"<<endl;
cout<<" |||||||||||||||||||||||||||||||||||||||||||||||||||||"<<endl;
cout<<endl;
cout<<" PICIK SAAPA PIAN HANDAK MAAMBIL DUIT: Rp. ";
cin>>ambil;
if(ambil>=500000)
{
system("cls");
cout<<endl<<endl;
cout<<" SALDO PIAN KADA CUKUP"<<endl;
cout<<"......................................................"<<endl;
cout<<"| |"<<endl;
cout<<"| Picik 1 Amun Handak Beasa Pulang |"<<endl;
cout<<"| Picik 2 Amun Handak Ka Program Pamulaan |"<<endl;
cout<<"| Picik 3 Amun Handak Kaluar |"<<endl;
cout<<"| |"<<endl;
cout<<"......................................................."<<endl;
cout<<"PICIK PILIHAN PIAN : ";
cin>>ulang1;
if(ulang1==1)
goto p111;
if(ulang1==2)
goto atas;
if(ulang1==3)
goto bawah;
else
cout<<endl;
cout<<" ....................................................."<<endl;
cout<<" || ||"<<endl;
cout<<" || MAAF,NANG PIAN PICIK TU SALAH ||"<<endl;
cout<<" || ||"<<endl;
cout<<" ....................................................."<<endl;
}
if(ambil<=500000)
{
saldo[20]=saldo1-ambil;
}
system("cls");
cout<<endl;
garis();
cout<<endl;
cout<<" DUIT NANG TASISA KAYAH PIAN : Rp. "<<saldo[20]<<endl;
cout<<endl;
garis();
cout<<endl;
cout<<"......................................................"<<endl;
cout<<"| |"<<endl;
cout<<"| Picik 1 Amun Handak Beasa Pulang |"<<endl;
cout<<"| Picik 2 Amun Handak Ka Program Pamulaan |"<<endl;
cout<<"| Picik 3 Amun Handak Kaluar |"<<endl;
cout<<"| |"<<endl;
cout<<"......................................................."<<endl;
cout<<"PICIK KANDAK PIAN : ";
cin>>ulang1;
if(ulang1==1)
goto p111;
if(ulang1==2)
goto ahatas;
if(ulang1==3)
goto bahawah;
else
cout<<endl;
cout<<" ....................................................."<<endl;
cout<<" || ||"<<endl;
cout<<" || MAAFLAH,NANG PIAN PICIK TU SALAH NAH ||"<<endl;
cout<<" || ||"<<endl;
cout<<" ....................................................."<<endl;
}
else if(pilih==3)
{
double saldo1=500000,duit,jumlah[20];
int ulang2;
p000:
system("cls");
cout<<" |||||||||||||||||||||||||||||||||||||||||||||||||||||"<<endl;
cout<<" || ||"<<endl;
cout<<" || ||"<<endl;
cout<<" || PIAN BAISI DUIT : Rp. "<<saldo1<<" ||"<<endl;
cout<<" || ||"<<endl;
cout<<" || ||"<<endl;
cout<<" |||||||||||||||||||||||||||||||||||||||||||||||||||||"<<endl;
cout<<endl;
cout<<" PICIK SA'APA PIAN HANDAK MANABUNG PULANG :Rp. ";
cin>>duit;
system("cls");
jumlah[20]=saldo1+duit;
cout<<endl;
cout<<" |||||||||||||||||||||||||||||||||||||||||||||||||||||||||"<<endl;
cout<<" || ||"<<endl;
cout<<" || DUIT PIAN SUDAH KAMI TAMBAHI ||"<<endl;
cout<<" || JADI,KISA DUIT PIAN : Rp. "<<jumlah[20]<<" ||"<<endl;
cout<<" || ||"<<endl;
cout<<" || ||"<<endl;
cout<<" |||||||||||||||||||||||||||||||||||||||||||||||||||||||||"<<endl;
cout<<endl;
garis();
cout<<endl;
cout<<"......................................................"<<endl;
cout<<"| |"<<endl;
cout<<"| Picik 1 Amun Handak Beasa Pulang |"<<endl;
cout<<"| Picik 2 Amun Handak Ka Program Pamulaan |"<<endl;
cout<<"| Picik 3 Amun Handak Kaluar |"<<endl;
cout<<"| |"<<endl;
cout<<"......................................................."<<endl;
cout<<"PILIH NAPA NANG PIAN KAHANDAKI : ";
cin>>ulang2;
if(ulang2==1)
goto p000;
if(ulang2==2)
goto ahatas;
if(ulang2==3)
goto bahawah;
else
cout<<endl;
cout<<" ....................................................."<<endl;
cout<<" || ||"<<endl;
cout<<" || MAAFLAH,NANG PIAN PICIK TU SALAH NAH ||"<<endl;
cout<<" || ||"<<endl;
cout<<" ....................................................."<<endl;
}
else if(pilih==4)
{int baris,kolom;
char nama[10][10];
int data_jual[10][10];
long gaj;
int ulang3;
p888:
system("cls");
cout<< " ======================================================="<<endl;
cout<< " MAHITUNG GAJIH KARYAWAN PT.Diana Gummy Group Company"<<endl;
cout<< " ======================================================="<<endl;
cout<<endl;
cout<<"Picikan Sa'apa karyawan Nang Handak dihitung : ";
cin>>baris;
cout<<"Picik Numur 7 gasan mahitung sakali gajihan [7 hari] : ";
cin>>kolom;
cout<<endl;
for(int i=1; i<=baris; i++)
{
cout<<"Naran Karyawan ke - "<<i<<" : ";
cin>>nama[i];
}
cout<<endl;
for(int i=1; i<=baris; i++)
{
for(int j=1; j<=kolom; j++)
{
cout<<"Kar/Hari Ke- "<<i<<"."<<j<<endl;
cout<<"Jumlah Karet/kg : ";
cin>>data_jual[i][j];
}
cout<<endl;
}
cout<<endl;
system("cls");
cout<<" LAPORAN PENGGAJIHAN"<<endl;
cout<<"----------------------------------------------------------------------------"<<endl;
cout<<"No Naran HARI Jumlah Kg Gaji Didapat "<<endl;
cout<<" -----------------------------------------------------------------"<<endl;
cout<<" 1 2 3 4 5 6 7 "<<endl;
cout<<"----------------------------------------------------------------------------"<<endl;
for(int i=1; i<=baris; i++)
{
cout<<setiosflags(ios::left)<<setw(4)<<i;
cout<<setiosflags(ios::left)<<setw(7)<<nama[i];
int jum=0;
for(int j=1; j<=kolom; j++)
{
cout<<setiosflags(ios::left)<<setw(6);
cout<<data_jual[i][j];
jum=jum+data_jual[i][j];
}
cout<<setiosflags(ios::left)<<setw(13)<<jum;
if(jum<=10)
{gaj=jum*3000;
}
else
{
gaj=(10*3000)+((jum-10)*5000);
}
cout<<setiosflags(ios::left)<<setw(6)<<gaj;
cout<<endl;
}
cout<< "----------------------------------------------------------------------------"<<endl;
cout<<endl;
cout<<endl;
cout<<endl;
cout<<"......................................................"<<endl;
cout<<"| |"<<endl;
cout<<"| Picik 1 Amun Handak Beasa Pulang |"<<endl;
cout<<"| Picik 2 Amun Handak Ka Program Pamulaan |"<<endl;
cout<<"| Picik 3 Amun Handak Kaluar |"<<endl;
cout<<"| |"<<endl;
cout<<"......................................................."<<endl;
cout<<"PILIH NAPA NANG PIAN HANDAKI : ";
cin>>ulang3;
if(ulang3==1)
goto p888;
if(ulang3==2)
goto ahatas;
if(ulang3==3)
goto bahawah;
else
cout<<endl;
cout<<" ....................................................."<<endl;
cout<<" || ||"<<endl;
cout<<" || MAAFLAH,NANG PIAN PICIK TU SALAH NAH ||"<<endl;
cout<<" || ||"<<endl;
cout<<" ....................................................."<<endl;
}
else if(pilih==5)
{
int nominal,hrg_pls;
string pulsa;
int a;
int ulang4;
p177:
system("cls");
cout<<endl;
garis();
cout<<" NUKAR PULSA KA SABARATAAN OPERATOR "<<endl;
garis();
cout<<" | PULSA | HARGA |"<<endl;
cout<<" |----------------------------|"<<endl;
cout<<" | 5000 | Rp.5500.00 |"<<endl;
cout<<" | 10.000 | Rp.10.500.00|"<<endl;
cout<<" | 15.000 | Rp.15.500.00|"<<endl;
cout<<" | | |"<<endl;
cout<<" | dst.Kelipatan 5000 |"<<endl;
cout<<" |____________________________|"<<endl;
cout<<endl;
cout<<"PILIH NUMUR PIAN KARTU NAPAH :"<<endl;
cout<<"1.TELKOMSEL"<<endl;
cout<<"2.XL"<<endl;
cout<<"3.EXIS"<<endl;
cout<<"4.INDOSAT"<<endl;
cout<<"_________________________________________________"<<endl;
cout<<"Pilih haja [1-4] :";
cin>>a;
cout<<"Barapa Numur Hape Pian : ";
cin>>pulsa;
cout<<"Isi Barapa (KELIPATAN 5000) : ";
cin>>nominal;
system("cls");
hrg_pls=500+nominal;
cout<<endl;
garis();
cout<<endl;
cout<<" SUDAH MASUK PULSANYA TU,NUMUR HP NYA INI KALO "<<pulsa<<" ,ISI "<<nominal<<endl;
cout<<" NANG HARUS PIAN BAYAR Rp."<<hrg_pls<<endl;
garis();
iklan_trans();
cout<<endl;
cout<<"......................................................."<<endl;
cout<<"| |"<<endl;
cout<<"| Ketik 1 Amun Handak Ba'asa |"<<endl;
cout<<"| Ketik 2 Amun Handak Kapamulaan |"<<endl;
cout<<"| Ketik 3 Amun Handak Ampih |"<<endl;
cout<<"| |"<<endl;
cout<<"......................................................."<<endl;
cout<<"PILIH NAPA NANG PIAN KAHANDAKI : ";
cin>>ulang4;
if(ulang4==1)
goto p177;
if(ulang4==2)
goto ahatas;
if(ulang4==3)
goto bahawah;
else
system("cls");
cout<<endl;
cout<<" ....................................................."<<endl;
cout<<" || ||"<<endl;
cout<<" || MAAFLAH,NANG PIAN PICIK TU SALAH NAH ||"<<endl;
cout<<" || ||"<<endl;
cout<<" ....................................................."<<endl;
}
else if(pilih==6)
{
long uang;
long hasil;
int pili,ulang5;
p990:
system("cls");
cout<<endl;
cout<<"___________________________________________________"<<endl;
cout<<" HANDAK TAHU MUN BAHURUP KA DUIT ASING "<<endl;
cout<<"---------------------------------------------------"<<endl;
cout<<" PILIH HURUPAN DUITNYA : "<<endl;
cout<<" 1. USD (Dollar Amerika) "<<endl;
cout<<" 2. AUD (Dollar Australia) "<<endl;
cout<<" 3. JPY (Yen Jepang) "<<endl;
cout<<" 4. EUR (Euro) "<<endl;
cout<<" 5. Kalo ai panasaran "<<endl;
cout<<" "<<endl;
cout<<endl;
cout<<"PILIH NANG PIAN KAHANDAK : "; cin>>pili;
cout<<endl;
if(pili==1)
{
float uang;
float hasil;
cout<<"Masukan Sa'apa duitnya : Rp."; cin>>uang;
hasil=uang*0.0007;
cout<<"----------------------------------------------------------"<<endl;
cout<<" Nilai Rp."<<uang<<" Sama lawan "<<hasil<<" U$"<<endl;
cout<<"----------------------------------------------------------"<<endl;
}
else if(pili==2)
{
float uang;
float hasil;
cout<<"Masukkan Sa'apa duitnya : Rp."; cin>>uang;
hasil=uang*0.0001;
cout<<"----------------------------------------------------------"<<endl;
cout<<" Nilai Rp."<<uang<<" Sama Lawan "<<hasil<<" AU$"<<endl;
cout<<"----------------------------------------------------------"<<endl;
}
else if(pili==3)
{
float uang;
float hasil;
cout<<"Masukkan Sa'apa duitnya : Rp."; cin>>uang;
hasil=uang*0.01;
cout<<"-----------------------------------------------------------"<<endl;
cout<<" Nilai Rp."<<uang<<" Sama Lawan "<<hasil<<" YEN"<<endl;
cout<<"-----------------------------------------------------------"<<endl;
}
else if(pili==4)
{
float uang;
float hasil;
cout<<"Masukkan Sa'apa duitnya : Rp."; cin>>uang;
hasil=uang*0.0001;
cout<<"----------------------------------------------------------"<<endl;
cout<<" Nilai Rp."<<uang<<" EUR Sama Lawan"<<hasil<<" POUNDSTERLING"<<endl;
cout<<"----------------------------------------------------------"<<endl;
}
else if(pili==5)
{
system("cls");
cout<<"Mun Bahurup Matan Duit Asing ka Rupiah(IDR)"<<endl;
cout<<"--------------------------------"<<endl;
cout<<"1 USD = 13475 IDR"<<endl;
cout<<"1 AUD = 10075 IDR"<<endl;
cout<<"1 JPY = 125 IDR"<<endl;
cout<<"1 EUR = 14250 IDR"<<endl;
}
cout<<endl;
cout<<"......................................................."<<endl;
cout<<"| |"<<endl;
cout<<"| Ketik 1 Amun Handak Ba'asa |"<<endl;
cout<<"| Ketik 2 Amun Handak Kapamulaan |"<<endl;
cout<<"| Ketik 3 Amun Handak Ampih |"<<endl;
cout<<"| |"<<endl;
cout<<"......................................................."<<endl;
cout<<endl;
cout<<"KAHANDAK PIAN : ";
cin>>ulang5;
if(ulang5==1)
goto p990;
if(ulang5==2)
goto ahatas;
if(ulang5==3)
goto bahawah;
else
cout<<endl;
cout<<" ....................................................."<<endl;
cout<<" || ||"<<endl;
cout<<" || MAAFLAH,NANG PIAN PICIK TU SALAH NAH ||"<<endl;
cout<<" || ||"<<endl;
cout<<" ....................................................."<<endl;
}
else if(pilih==7)
{
cout<<endl;
goto pbahasa;
}
else if(pilih==8)
{
nabung();
}
else
{cout<<endl;
cout<<" ....................................................."<<endl;
cout<<" || ||"<<endl;
cout<<" || MAAFLAH,NANG PIAN PICIK TU SALAH NAH ||"<<endl;
cout<<" || ||"<<endl;
cout<<" ....................................................."<<endl;
bahawah:
cout<<endl;
nabung();
}
getch();
}
break;
}
default:
{
cout<<endl;
cout<<endl;
cout<<" NOT AVAILABLE,PROGRAM HAS STOP "<<endl;
cout<<" PILIHAN TAK TERSEDIA,PROGRAM TERHENTI"<<endl;
cout<<" PILIHAN PIAN KADADA TABUAT,PROGRAM AMPIHAN "<<endl;
cout<<endl;
getch ();
}
}
}
}
}
Oke disini aku makai 3 bahasa yakni bahasa indonesia,inggris,sama bahasa banjar,itu bahasa daerah aku..semoga bermanfaat ya...!
#include <stdlib.h>
#include <stdio.h>
#include <conio.h>
#include <iomanip>
#include <windows.h>
using namespace std;
void garis()
{
cout<<" =================================================================="<<endl;
}
void nabung()
{
cout<<endl;
cout<<" |||||||||||||||||||||||||||||||||||||||||||||||||||||||||"<<endl;
cout<<" || ||"<<endl;
cout<<" || TERIMAKASIH TELAH MENJADI NASABAH DCA ||"<<endl;
cout<<" || ||"<<endl;
cout<<" || ayo jadilah pemenang gebyar DCA dengan terus ||"<<endl;
cout<<" || bertransaksi dan rajin menabung..($)_($) ||"<<endl;
cout<<" || ||"<<endl;
cout<<" |||||||||||||||||||||||||||||||||||||||||||||||||||||||||"<<endl;
}
void iklan_trans()
{
cout<<" |||||||||||||||||||||||||||||||||||||||||||||||||||||||||"<<endl;
cout<<" || ||"<<endl;
cout<<" || TERIMA KASIH TELAH BERTRANSAKSI ||"<<endl;
cout<<" || ayo jadilah pemenang gebyar DCA dengan terus ||"<<endl;
cout<<" || bertransaksi dan rajin menabung..($)_($) ||"<<endl;
cout<<" || ||"<<endl;
cout<<" |||||||||||||||||||||||||||||||||||||||||||||||||||||||||"<<endl;
}
void menu_ulang()
{
cout<<" ........................................................."<<endl;
cout<<" | |"<<endl;
cout<<" | Ketik 1 jika ingin mengulang program |"<<endl;
cout<<" | Ketik 2 jika ingin menuju progam utama |"<<endl;
cout<<" | Ketik 3 jika ingin menutup program |"<<endl;
cout<<" | |"<<endl;
cout<<" ........................................................."<<endl;
}
int pilih;
int main()
{ system("color 37");
pbahasa:
system("cls");
int langua;
cout<< " .-------------------------------------------------------------."<<endl;
cout<< " |_________________________BANK DCA____________________________|"<<endl<<endl;
cout<<" PILIH BAHASA ANDA--CHOOSE YOUR LANGUAGE--PILIH BAHASA PIAN"<<endl;
cout<<" 1. ENGLISH <USA>"<<endl;
cout<<" 2. BAHASA <INDONESIA>"<<endl;
cout<<" 3. BASA <BANJAR>"<<endl;
cout<<endl;
cout<<" YOUR CHOICE---PILIHAN ANDA---PILIHAN PIAN : ";
cin>>langua;
switch(langua)
{
case 1:
{
float pin,nama;
int pass;
awal:
system("color 37");
system("cls");
cout<< " .-------------------------------------------------------------."<<endl;
cout<< " |_________________________BANK DCA____________________________|"<<endl;
cout<< " "<<endl;
cout<< " Enter your Password : "<<endl<<endl;
cout<<" ";cin>>pass;
if(pass==556699)
{
cout<< " User: Dianawati"<<endl;
goto baww;
}
else if(pass==12345)
{
cout<< "User: Justin bieber"<<endl;
goto baww;
}
else if(pass==89890)
{
cout<< "User: Katty perry"<<endl;
goto baww;
}
else
{
char lagi;
system("cls");
cout<<endl;
cout<<endl;
cout<<endl;
cout<<" YOUR PASSWORD IS AVAILABLE !!"<<endl;
cout<< " Try Again ?(Y/T): " ;
cin>>lagi;
if(lagi=='Y'||lagi=='y')
goto awal;
else if(lagi=='T'||lagi=='t')
goto akhir;
else
cout<<"PROGRAM ERROR !!";
}
{
baww:
system("cls");
cout<< " +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"<<endl;
cout<< " + BANK DCA (Diana Central Asia) +"<<endl;
cout<< " + PT.DIANA GUMMY GROUP COMPANY BANK EMPLOYEES ONLY +"<<endl;
cout<< " +-------------------------------------------------------------+"<<endl;
cout<< " +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"<<endl;
cout<<endl;
cout<< " .-------------------------------------------------------------."<<endl;
cout<< " | CHOOSE YOUR MENU : |"<<endl;
cout<< " | |"<<endl;
cout<< " | 1. Check the balance |"<<endl;
cout<< " | 2. Pull cash savings |"<<endl;
cout<< " | 3. Saving deposite |"<<endl;
cout<< " | 4. Count lard employees |"<<endl;
cout<< " | 5. Buy pulse |"<<endl;
cout<< " | 6. Convertible currencies |"<<endl;
cout<< " | 7. Change language |"<<endl;
cout<< " | 8. Exit |"<<endl;
cout<< " '-------------------------------------------------------------'"<<endl;
cout<< " INPUT CHOICE [1-8]..";
cin>>pilih;
system("cls");
if(pilih==1)
{
char ulang;
double saldo1=500000;
cout<<endl;
cout<<" ||||||||||||||||||||||||||||||||||||||||||||||||||||"<<endl;
cout<<" || ||"<<endl;
cout<<" || ||"<<endl;
cout<<" || ||"<<endl;
cout<<" || YOUR MONEY AMOUNT Rp. "<<saldo1<<" ||"<<endl;
cout<<" || ||"<<endl;
cout<<" || Keep your money increase..and get the PRIZE.. ||"<<endl;
cout<<" || ||"<<endl;
cout<<" ||||||||||||||||||||||||||||||||||||||||||||||||||||"<<endl;
cout<<endl;
cout<<"BACK TO BEGINNING ? [Y/T] : ";
cin>>ulang;
system("cls");
if(ulang=='Y'||ulang=='y')
goto awal;
if(ulang=='T'||ulang=='t')
goto akhir;
else
cout<<endl;
cout<<" ....................................................."<<endl;
cout<<" || ||"<<endl;
cout<<" || SORRY,YOUR INPUT ARE WRONG ||"<<endl;
cout<<" || ||"<<endl;
cout<<" ....................................................."<<endl;
}
else if(pilih==2)
{
long saldo[20],saldo1;
float ambil;
int ulang1;
saldo1=500000;
p0:
system("cls");
cout<<endl;
cout<<" |||||||||||||||||||||||||||||||||||||||||||||||||||||"<<endl;
cout<<" || ||"<<endl;
cout<<" || ||"<<endl;
cout<<" || YOUR MONEY AMOUNT Rp. "<<saldo1<<" ||"<<endl;
cout<<" || ||"<<endl;
cout<<" || ||"<<endl;
cout<<" |||||||||||||||||||||||||||||||||||||||||||||||||||||"<<endl;
cout<<endl;
cout<<" INPUT NOMINAL WOULD YOU TAKE : Rp. ";
cin>>ambil;
if(ambil>=500000)
{
cout<<endl<<endl;
cout<<" YOUR MONEY IS NOT ENOUGHT "<<endl;
}
if(ambil<=500000)
{
saldo[20]=saldo1-ambil;
system("cls");
cout<<endl;
garis();
cout<<endl;
cout<<" YOUR MONEY AMOUNT : Rp. "<<saldo[20]<<endl;
cout<<endl;
}
garis();
cout<<endl;
cout<<"......................................................."<<endl;
cout<<"| |"<<endl;
cout<<"| Type 1 If You want to Repeat program |"<<endl;
cout<<"| Type 2 If You Want to go the main program |"<<endl;
cout<<"| Type 3 If you want to Exit |"<<endl;
cout<<"| |"<<endl;
cout<<"......................................................."<<endl;
cout<<" INPUT YOUR CHOICE : ";
cin>>ulang1;
if(ulang1==1)
goto p0;
if(ulang1==2)
goto awal;
if(ulang1==3)
goto akhir;
else
cout<<" ....................................................."<<endl;
cout<<" || ||"<<endl;
cout<<" || SORRY,YOUR INPUT ARE WRONG ||"<<endl;
cout<<" || ||"<<endl;
cout<<" ....................................................."<<endl; }
else if(pilih==3)
{
double saldo1=500000,duit;
long jumlah[20];
int ulang2;
p10:
system("cls");
cout<<" |||||||||||||||||||||||||||||||||||||||||||||||||||||"<<endl;
cout<<" || ||"<<endl;
cout<<" || ||"<<endl;
cout<<" || YOUR MONEY AMOUNT : Rp. "<<saldo1<<" ||"<<endl;
cout<<" || ||"<<endl;
cout<<" || ||"<<endl;
cout<<" |||||||||||||||||||||||||||||||||||||||||||||||||||||"<<endl;
cout<<endl;
cout<<" INPUT YOUR MONEY TO ADDED :Rp. ";
cin>>duit;
system("cls");
jumlah[20]=saldo1+duit;
cout<<endl;
cout<<" |||||||||||||||||||||||||||||||||||||||||||||||||||||||||"<<endl;
cout<<" || ||"<<endl;
cout<<" || YOUR MONEY ALREADY ADDED ||"<<endl;
cout<<" || THE REST OF YOUR MONEY : Rp. "<<jumlah[20]<<" ||"<<endl;
cout<<" || ||"<<endl;
cout<<" || ||"<<endl;
cout<<" |||||||||||||||||||||||||||||||||||||||||||||||||||||||||"<<endl;
cout<<endl;
garis();
cout<<endl;
cout<<"......................................................."<<endl;
cout<<"| |"<<endl;
cout<<"| Type 1 If You want to Repeat program |"<<endl;
cout<<"| Type 2 If You Want to go the main program |"<<endl;
cout<<"| Type 3 If you want to Exit |"<<endl;
cout<<"| |"<<endl;
cout<<"......................................................."<<endl;
cout<<"INPUT YOUR CHOICE : ";
cin>>ulang2;
if(ulang2==1)
goto p10;
if(ulang2==2)
goto awal;
if(ulang2==3)
goto akhir;
else
cout<<" ....................................................."<<endl;
cout<<" || ||"<<endl;
cout<<" || SORRY,YOUR INPUT ARE WRONG ||"<<endl;
cout<<" || ||"<<endl;
cout<<" ....................................................."<<endl;
}
else if(pilih==4)
{
int baris,kolom;
char nama[10][10];
int data_jual[10][10];
long gaj;
int ulang3;
p11:
cout<<endl;
cout<< " ========================================================="<<endl;
cout<< " COUNT PAYMENT TO EMPLOYEES PT.Diana Gummy Group Company"<<endl;
cout<< " ========================================================="<<endl;
cout<<"Input How Money Employees you will Count : ";
cin>>baris;
cout<<"Input Number 7 to Count Your Payment [7 Days] : ";
cin>>kolom;
cout<<endl;
for(int i=1; i<=baris; i++)
{
cout<<"Name of Employees in - "<<i<<" : ";
cin>>nama[i];
}
cout<<endl;
for(int i=1; i<=baris; i++)
{
for(int j=1; j<=kolom; j++)
{
cout<<"Employees.Day in- "<<i<<"."<<j<<endl;
cout<<"Rubber/Kg : ";
cin>>data_jual[i][j];
}
cout<<endl;
}
cout<<endl;
system("cls");
garis ();
cout<<" COUNT LARD EMPLOYESS PT.Diana Gummy Group Company"<<endl;
cout<<"----------------------------------------------------------------------------"<<endl;
cout<<"Num Name Rubber/Kg per Days Sum your payments "<<endl;
cout<<" -----------------------------------------------------------------"<<endl;
cout<<" 1 2 3 4 5 6 7 "<<endl;
cout<<"----------------------------------------------------------------------------"<<endl;
//untuk isian dalam tabel
for(int i=1; i<=baris; i++)
{
cout<<setiosflags(ios::left)<<setw(4)<<i;
cout<<setiosflags(ios::left)<<setw(7)<<nama[i];
int jum=0;
for(int j=1; j<=kolom; j++)
{
cout<<setiosflags(ios::left)<<setw(6);
cout<<data_jual[i][j];
jum=jum+data_jual[i][j];
}
cout<<setiosflags(ios::left)<<setw(13)<<jum;
if(jum<=10)
{gaj=jum*3000;
}
else
{
gaj=(10*3000)+((jum-10)*5000);
}
cout<<setiosflags(ios::left)<<setw(6)<<gaj;
cout<<endl;
cout<<"----------------------------------------------------------------------------";
cout<<endl;
}
cout<<endl;
cout<<"......................................................."<<endl;
cout<<"| |"<<endl;
cout<<"| Type 1 If You want to Repeat program |"<<endl;
cout<<"| Type 2 If You Want to go the main program |"<<endl;
cout<<"| Type 3 If you want to Exit |"<<endl;
cout<<"| |"<<endl;
cout<<"......................................................."<<endl;
cout<<"Input Your Choice : ";
cin>>ulang3;
if(ulang3==1)
goto p11;
if(ulang3==2)
goto atas;
if(ulang3==3)
goto bawah;
else
cout<<endl;
cout<<" ....................................................."<<endl;
cout<<" || ||"<<endl;
cout<<" || SORRY,YOUR INPUT IS WRONG ||"<<endl;
cout<<" || ||"<<endl;
cout<<" ....................................................."<<endl;
}
else if(pilih==5)
{
int nominal,hrg_pls;
string pulsa;
int a;
int ulang4;
p12:
system("cls");
cout<<endl;
garis();
cout<<" BUY PULSE FOR ALL OPERATOR "<<endl;
garis();
cout<<" | PULSE | PRICE |"<<endl;
cout<<" |----------------------------|"<<endl;
cout<<" | 5000 | Rp.5500.00 |"<<endl;
cout<<" | 10.000 | Rp.10.500.00|"<<endl;
cout<<" | 15.000 | Rp.15.500.00|"<<endl;
cout<<" | | |"<<endl;
cout<<" | multiples.ect 5000 |"<<endl;
cout<<" |____________________________|"<<endl;
cout<<endl;
cout<<"CHOSE YOUR NUMBER PHONE TIPE :"<<endl;
cout<<"1.TELKOMSEL"<<endl;
cout<<"2.XL"<<endl;
cout<<"3.AXIS"<<endl;
cout<<"4.INDOSAT"<<endl;
cout<<"_________________________________________________"<<endl;
cout<<"INPUT YOUR CHOICE [1-4] :";
cin>>a;
cout<<"INPUT THE NUMBER THAT WILL YOU FILL A PULSE"<<endl;
cin>>pulsa;
cout<<"INPUT NOMINAL PULSES THAT YOU WILL FILL(MULTIPLES 5000)"<<endl;
cin>>nominal;
system("cls");
hrg_pls=500+nominal;
cout<<endl;
garis();
cout<<endl;
cout<<" TRANSACTION SUCCESSFULLY WITH NUMBER PHONE "<<pulsa<<" AMOUNTS "<<nominal<<endl;
cout<<" THE PRICE PULSES THAT YOU PAY WORTH Rp."<<hrg_pls<<endl;
garis();
iklan_trans();
cout<<endl;
cout<<"......................................................."<<endl;
cout<<"| |"<<endl;
cout<<"| Type 1 If You want to Repeat program |"<<endl;
cout<<"| Type 2 If You Want to go the main program |"<<endl;
cout<<"| Type 3 If you want to Exit |"<<endl;
cout<<"| |"<<endl;
cout<<"......................................................."<<endl;
cout<<"CHOSE YOUR CHOICE : ";
cin>>ulang4;
if(ulang4==1)
goto p12;
if(ulang4==2)
goto awal;
if(ulang4==3)
goto akhir;
else
system("cls");
cout<<endl;
cout<<" ....................................................."<<endl;
cout<<" || ||"<<endl;
cout<<" || SORRY,YOUR INPUT ARE WRONG ||"<<endl;
cout<<" || ||"<<endl;
cout<<" ....................................................."<<endl;
}
else if(pilih==6)
{
long uang;
long hasil;
int pili,ulang5;
p13:
system("cls");
cout<<endl;
cout<<"__________________________________________________"<<endl;
cout<<" KONVERSION RUPIAH TO OTHER CURRENCIES "<<endl;
cout<<"--------------------------------------------------"<<endl;
cout<<" Choice currency : "<<endl;
cout<<" 1. USD (Dollar Amerika) "<<endl;
cout<<" 2. AUD (Dollar Australia) "<<endl;
cout<<" 3. JPY (Yen Jepang) "<<endl;
cout<<" 4. EUR (Euro) "<<endl;
cout<<" 5. Info "<<endl;
cout<<" "<<endl;
cout<<endl;
cout<<"INPUT YOUR CHOICE : "; cin>>pili;
cout<<endl;
if(pili==1)
{
float uang;
float hasil;
cout<<"Input your money : Rp."; cin>>uang;
hasil=uang*0.0007;
cout<<"----------------------------------------------------------"<<endl;
cout<<" Nilai Rp."<<uang<<" Equal to "<<hasil<<" U$"<<endl;
cout<<"----------------------------------------------------------"<<endl;
}
else if(pili==2)
{
float uang;
float hasil;
cout<<"Input your money : Rp."; cin>>uang;
hasil=uang*0.0001;
cout<<"----------------------------------------------------------"<<endl;
cout<<" Amount Rp."<<uang<<" Equal to "<<hasil<<" AU$"<<endl;
cout<<"----------------------------------------------------------"<<endl;
}
else if(pili==3)
{
float uang;
float hasil;
cout<<"Input your money : Rp."; cin>>uang;
hasil=uang*0.01;
cout<<"-----------------------------------------------------------"<<endl;
cout<<" Amount Rp."<<uang<<" Equal to "<<hasil<<" YEN"<<endl;
cout<<"-----------------------------------------------------------"<<endl;
}
else if(pili==4)
{
float uang;
float hasil;
cout<<"Input your money : Rp."; cin>>uang;
hasil=uang*0.0001;
cout<<"----------------------------------------------------------"<<endl;
cout<<" Nilai Rp."<<uang<<" Setara dengan Rp."<<hasil<<" POUNDSTERLING"<<endl;
cout<<"----------------------------------------------------------"<<endl;
}
else if(pili==5)
{
system("cls");
cout<<"Convertion Foreign currency to Rupiah(IDR)"<<endl;
cout<<"--------------------------------"<<endl;
cout<<"1 USD = 13475 IDR"<<endl;
cout<<"1 AUD = 10075 IDR"<<endl;
cout<<"1 JPY = 125 IDR"<<endl;
cout<<"1 EUR = 14250 IDR"<<endl;
}
cout<<endl;
cout<<"......................................................."<<endl;
cout<<"| |"<<endl;
cout<<"| Type 1 If You want to Repeat program |"<<endl;
cout<<"| Type 2 If You Want to go the main program |"<<endl;
cout<<"| Type 3 If you want to Exit |"<<endl;
cout<<"| |"<<endl;
cout<<"......................................................."<<endl;
cout<<endl;
cout<<"YOUR CHOICE : ";
cin>>ulang5;
if(ulang5==1)
goto p13;
if(ulang5==2)
goto awal;
if(ulang5==3)
goto akhir;
else
cout<<endl;
cout<<" ....................................................."<<endl;
cout<<" || ||"<<endl;
cout<<" || SORRY,YOUR INPUT ARE WRONG ||"<<endl;
cout<<" || ||"<<endl;
cout<<" ....................................................."<<endl;
}
else if(pilih==7)
{
cout<<endl;
goto pbahasa;
}
else if(pilih==8)
{
nabung();
}
else
{cout<<endl;
cout<<" ....................................................."<<endl;
cout<<" || ||"<<endl;
cout<<" || SORRY,YOUR INPUT ARE WRONG ||"<<endl;
cout<<" || ||"<<endl;
cout<<" ....................................................."<<endl;
akhir:
cout<<endl;
nabung();
}
getch();
break;
}
case 2:
{
float pin,nama;
int pass;
atas:
system("color 37");
system("cls");
cout<< " .-------------------------------------------------------------."<<endl;
cout<< " |_________________________BANK DCA____________________________|"<<endl;
cout<< " "<<endl;
cout<< " Silakan Masukan Password Anda : "<<endl;
cout<<" ";cin>>pass;
if(pass==556699)
{
cout<< " User: Dianawati"<<endl;
goto down;
}
else if(pass==12345)
{
cout<< "User: Justin bieber"<<endl;
goto down;
}
else if(pass==89890)
{
cout<< "User: Katty perry"<<endl;
goto down;
}
else
{
char lagi;
system("cls");
cout<<endl;
cout<<endl;
cout<<endl;
cout<<" PASSWORD ANDA SALAH!!"<<endl;
cout<< " Ingin Mencoba lagi?(Y/T): " ;
cin>>lagi;
if(lagi=='Y'||lagi=='y')
goto atas;
else if(lagi=='T'||lagi=='t')
goto bawah;
}
{
down:
system("cls");
cout<< " +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"<<endl;
cout<< " + BANK DCA (Diana Central Asia) +"<<endl;
cout<< " + BANK KHUSUS KARYAWAN PT.DIANA GUMMY GROUP COMPANY +"<<endl;
cout<< " +-------------------------------------------------------------+"<<endl;
cout<< " +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"<<endl;
cout<<endl;
cout<< " .-------------------------------------------------------------."<<endl;
cout<< " | PILIH MENU YANG ANDA INGIN |"<<endl;
cout<< " | |"<<endl;
cout<< " | 1. Cek Saldo |"<<endl;
cout<< " | 2. Tarik tunai tabungan |"<<endl;
cout<< " | 3. Setor tabungan |"<<endl;
cout<< " | 4. Hitung gajih karyawan |"<<endl;
cout<< " | 5. Beli pulsa |"<<endl;
cout<< " | 6. Konversi mata uang |"<<endl;
cout<< " | 7. Ganti bahasa |"<<endl;
cout<< " | 8. Keluar |"<<endl;
cout<< " '-------------------------------------------------------------'"<<endl;
cout<< " MASUKAN PILIHAN [1-8]..";
cin>>pilih;
system("cls");
if(pilih==1)
{
char ulang;
double saldo1=500000;
cout<<endl;
cout<<" ||||||||||||||||||||||||||||||||||||||||||||||||||||"<<endl;
cout<<" || ||"<<endl;
cout<<" || ||"<<endl;
cout<<" || ||"<<endl;
cout<<" || JUMLAH SALDO ANDA Rp. "<<saldo1<<" ||"<<endl;
cout<<" || ||"<<endl;
cout<<" || TINGKATKAN TERUS SALDO ANDA..dapati HADIAHNYA..||"<<endl;
cout<<" || ||"<<endl;
cout<<" ||||||||||||||||||||||||||||||||||||||||||||||||||||"<<endl;
cout<<endl;
cout<<"INGIN KEMBALI KE AWAL ? [Y/T] : ";
cin>>ulang;
system("cls");
if(ulang=='Y'||ulang=='y')
goto atas;
if(ulang=='T'||ulang=='t')
goto bawah;
else
cout<<endl;
cout<<" ....................................................."<<endl;
cout<<" || ||"<<endl;
cout<<" || MAAF,PERINTAH YANG ANDA MASUKAN SALAH ||"<<endl;
cout<<" || ||"<<endl;
cout<<" ....................................................."<<endl;
}
else if(pilih==2)
{
long saldo[20],saldo1,ambil;
int ulang1;
saldo1=500000;
p2:
cout<<endl;
system("cls");
cout<<" |||||||||||||||||||||||||||||||||||||||||||||||||||||"<<endl;
cout<<" || ||"<<endl;
cout<<" || ||"<<endl;
cout<<" || JUMLAH SALDO ANDA Rp. "<<saldo1<<" ||"<<endl;
cout<<" || ||"<<endl;
cout<<" || ||"<<endl;
cout<<" |||||||||||||||||||||||||||||||||||||||||||||||||||||"<<endl;
cout<<endl;
cout<<" MASUKAN NOMINAL YANG AKAN ANDA AMBIL: Rp. ";
cin>>ambil;
if(ambil>=500000)
{
system("cls");
cout<<endl<<endl;
cout<<" SALDO ANDA TIDAK CUKUP"<<endl;
cout<<endl;
}
if(ambil<=500000)
{
saldo[20]=saldo1-ambil;
system("cls");
cout<<endl;
garis();
cout<<endl;
cout<<" SISA SALDO ANDA : Rp. "<<saldo[20]<<endl;
cout<<endl;
}
menu_ulang();
cout<<"MASUKAN PILIHAN : ";
cin>>ulang1;
if(ulang1==1)
goto p2;
if(ulang1==2)
goto atas;
if(ulang1==3)
goto bawah;
else
cout<<endl;
cout<<" ....................................................."<<endl;
cout<<" || ||"<<endl;
cout<<" || MAAF,PERINTAH YANG ANDA MASUKAN SALAH ||"<<endl;
cout<<" || ||"<<endl;
cout<<" ....................................................."<<endl;
}
else if(pilih==3)
{
long saldo1=500000;
long duit,jumlah[20];
int ulang2;
p3:
system("cls");
cout<<" |||||||||||||||||||||||||||||||||||||||||||||||||||||"<<endl;
cout<<" || ||"<<endl;
cout<<" || ||"<<endl;
cout<<" || JUMLAH SALDO ANDA ADALAH : Rp. "<<saldo1<<" ||"<<endl;
cout<<" || ||"<<endl;
cout<<" || ||"<<endl;
cout<<" |||||||||||||||||||||||||||||||||||||||||||||||||||||"<<endl;
cout<<endl;
cout<<" MASUKAN JUMLAH UANG YANG AKAN ANDA TABUNG :Rp. ";
cin>>duit;
system("cls");
jumlah[20]=saldo1+duit;
cout<<endl;
cout<<" |||||||||||||||||||||||||||||||||||||||||||||||||||||||||"<<endl;
cout<<" || ||"<<endl;
cout<<" || SALDO ANDA TELAH DITAMBAHKAN ||"<<endl;
cout<<" || SISA SALDO ANDA SENILAI : Rp. "<<jumlah[20]<<" ||"<<endl;
cout<<" || ||"<<endl;
cout<<" || ||"<<endl;
cout<<" |||||||||||||||||||||||||||||||||||||||||||||||||||||||||"<<endl;
cout<<endl;
garis();
cout<<endl;
menu_ulang();
cout<<"MASUKAN PILIHAN : ";
cin>>ulang2;
if(ulang2==1)
goto p3;
if(ulang2==2)
goto atas;
if(ulang2==3)
goto bawah;
else
cout<<endl;
cout<<" ....................................................."<<endl;
cout<<" || ||"<<endl;
cout<<" || MAAF,PERINTAH YANG ANDA MASUKAN SALAH ||"<<endl;
cout<<" || ||"<<endl;
cout<<" ....................................................."<<endl;
}
else if(pilih==4)
{
int baris,kolom;
char nama[10][10];
int data_jual[10][10];
long gaj;
int ulang3;
p7:
cout<<endl;
cout<< " ======================================================="<<endl;
cout<< " MENGHITUNG GAJI KARYAWAN PT.Diana Gummy Group Company"<<endl;
cout<< " ======================================================="<<endl;
cout<<" Masukan Banyak karyawan Yang Ingin dihitung : ";
cin>>baris;
cout<<" Masukan Angka 7 Untuk Hitung Sekali Gajihan [7 hari] : ";
cin>>kolom;
cout<<endl;
for(int i=1; i<=baris; i++)
{
cout<<"Nama Karyawan ke - "<<i<<" : ";
cin>>nama[i];
}
cout<<endl;
for(int i=1; i<=baris; i++)
{
for(int j=1; j<=kolom; j++)
{
cout<<"Kar/Hari Ke- "<<i<<"."<<j<<endl;
cout<<"Jumlah Karet/kg : ";
cin>>data_jual[i][j];
}
cout<<endl;
}
cout<<endl;
system("cls");
cout<<" LAPORAN PENGGAJIHAN"<<endl;
cout<<"----------------------------------------------------------------------------"<<endl;
cout<<"No Nama HARI Jumlah Kg Gaji Terima "<<endl;
cout<<" -----------------------------------------------------------------"<<endl;
cout<<" 1 2 3 4 5 6 7 "<<endl;
cout<<"----------------------------------------------------------------------------"<<endl;
for(int i=1; i<=baris; i++)
{
cout<<setiosflags(ios::left)<<setw(4)<<i;
cout<<setiosflags(ios::left)<<setw(7)<<nama[i];
int jum=0;
for(int j=1; j<=kolom; j++)
{
cout<<setiosflags(ios::left)<<setw(6);
cout<<data_jual[i][j];
jum=jum+data_jual[i][j];
}
cout<<setiosflags(ios::left)<<setw(13)<<jum;
if(jum<=10)
{gaj=jum*3000;
}
else
{
gaj=(10*3000)+((jum-10)*5000);
}
cout<<setiosflags(ios::left)<<setw(6)<<gaj;
cout<<endl;
}
cout<< "----------------------------------------------------------------------------"<<endl;
cout<<endl;
menu_ulang();
cout<<"MASUKAN PILIHAN : ";
cin>>ulang3;
if(ulang3==1)
goto p7;
if(ulang3==2)
goto atas;
if(ulang3==3)
goto bawah;
else
cout<<endl;
cout<<" ....................................................."<<endl;
cout<<" || ||"<<endl;
cout<<" || MAAF,PERINTAH YANG ANDA MASUKAN SALAH ||"<<endl;
cout<<" || ||"<<endl;
cout<<" ....................................................."<<endl;
}
else if(pilih==5)
{
int nominal,hrg_pls;
string pulsa;
int a;
int ulang4;
p8:
system("cls");
cout<<endl;
garis();
cout<<" BELI PULSA KE SEMUA OPERATOR "<<endl;
garis();
cout<<" | PULSA | HARGA |"<<endl;
cout<<" |----------------------------|"<<endl;
cout<<" | 5000 | Rp.5500.00 |"<<endl;
cout<<" | 10.000 | Rp.10.500.00|"<<endl;
cout<<" | 15.000 | Rp.15.500.00|"<<endl;
cout<<" | | |"<<endl;
cout<<" | dst.Kelipatan 5000 |"<<endl;
cout<<" |____________________________|"<<endl;
cout<<endl;
cout<<"PILIH JENIS NOMER ANDA :"<<endl;
cout<<"1.TELKOMSEL"<<endl;
cout<<"2.XL"<<endl;
cout<<"3.EXIS"<<endl;
cout<<"4.INDOSAT"<<endl;
cout<<"_________________________________________________"<<endl;
cout<<"Masukan pilihan [1-4] :";
cin>>a;
cout<<"MASUKAN NOMER YANG AKAN ANDA ISI PULSA"<<endl;
cin>>pulsa;
cout<<"MASUKAN NOMINAL PULSA YANG AKAN ANDA ISI(KELIPATAN 5000)"<<endl;
cin>>nominal;
system("cls");
hrg_pls=500+nominal;
cout<<endl;
garis();
cout<<endl;
cout<<" TRANSAKSI BERHASIL DENGAN NOMER HP "<<pulsa<<" ,SENILAI "<<nominal<<endl;
cout<<" HARGA PULSA YANG ANDA BAYAR SENILAI Rp."<<hrg_pls<<endl;
garis();
iklan_trans();
cout<<endl;
menu_ulang();
cout<<"MASUKAN PILIHAN : ";
cin>>ulang4;
if(ulang4==1)
goto p8;
if(ulang4==2)
goto atas;
if(ulang4==3)
goto bawah;
else
system("cls");
cout<<endl;
cout<<" ....................................................."<<endl;
cout<<" || ||"<<endl;
cout<<" || MAAF,PERINTAH YANG ANDA MASUKAN SALAH ||"<<endl;
cout<<" || ||"<<endl;
cout<<" ....................................................."<<endl;
}
else if(pilih==6)
{
long uang;
long hasil;
int pili,ulang5;
p9:
system("cls");
cout<<endl;
cout<<"___________________________________________________"<<endl;
cout<<" KONVERSI MATA UANG RUPIAH KE MATA UANG LAINYA "<<endl;
cout<<"---------------------------------------------------"<<endl;
cout<<" Pilihan Mata Uang : "<<endl;
cout<<" 1. USD (Dollar Amerika) "<<endl;
cout<<" 2. AUD (Dollar Australia) "<<endl;
cout<<" 3. JPY (Yen Jepang) "<<endl;
cout<<" 4. EUR (Euro) "<<endl;
cout<<" 5. Info "<<endl;
cout<<" "<<endl;
cout<<endl;
cout<<"Masukkan Pilihan Anda : "; cin>>pili;
cout<<endl;
if(pili==1)
{
float uang;
float hasil;
cout<<"Masukkan Nilai Uang : Rp."; cin>>uang;
hasil=uang*0.0007;
cout<<"----------------------------------------------------------"<<endl;
cout<<" Nilai Rp."<<uang<<" Setara dengan "<<hasil<<" U$"<<endl;
cout<<"----------------------------------------------------------"<<endl;
}
else if(pili==2)
{
float uang;
float hasil;
cout<<"Masukkan Nilai Uang : Rp."; cin>>uang;
hasil=uang*0.0001;
cout<<"----------------------------------------------------------"<<endl;
cout<<" Nilai Rp."<<uang<<" Setara dengan "<<hasil<<" AU$"<<endl;
cout<<"----------------------------------------------------------"<<endl;
}
else if(pili==3)
{
float uang;
float hasil;
cout<<"Masukkan Nilai Uang : Rp."; cin>>uang;
hasil=uang*0.01;
cout<<"-----------------------------------------------------------"<<endl;
cout<<" Nilai Rp"<<uang<<" Setara dengan "<<hasil<<" YEN"<<endl;
cout<<"-----------------------------------------------------------"<<endl;
}
else if(pili==4)
{
float uang;
float hasil;
cout<<"Masukkan Nilai Uang : Rp."; cin>>uang;
hasil=uang*0.0001;
cout<<"----------------------------------------------------------"<<endl;
cout<<" Nilai Rp."<<uang<<" Setara dengan Rp."<<hasil<<" POUNDSTERLING"<<endl;
cout<<"----------------------------------------------------------"<<endl;
}
else if(pili==5)
{
system("cls");
cout<<"Nilai tukar Asing ke Rupiah(IDR)"<<endl;
cout<<"--------------------------------"<<endl;
cout<<"1 USD = 13475 IDR"<<endl;
cout<<"1 AUD = 10075 IDR"<<endl;
cout<<"1 JPY = 125 IDR"<<endl;
cout<<"1 EUR = 14250 IDR"<<endl;
}
cout<<endl;
cout<<"......................................................."<<endl;
cout<<"| |"<<endl;
cout<<"| Ketik 1 Jika Ingin Mengulang Program |"<<endl;
cout<<"| Ketik 2 Jika Ingin Menuju Program Utama |"<<endl;
cout<<"| Ketik 3 Jika Ingin Menutup Program |"<<endl;
cout<<"| |"<<endl;
cout<<"......................................................."<<endl;
cout<<endl;
cout<<"PILIHAN ANDA : ";
cin>>ulang5;
if(ulang5==1)
goto p9;
if(ulang5==2)
goto atas;
if(ulang5==3)
goto bawah;
else
cout<<endl;
cout<<" ....................................................."<<endl;
cout<<" || ||"<<endl;
cout<<" || MAAF,PERINTAH YANG ANDA MASUKAN SALAH ||"<<endl;
cout<<" || ||"<<endl;
cout<<" ....................................................."<<endl;
}
else if(pilih==7)
{
cout<<endl;
goto pbahasa;
}
else if(pilih==8)
{
nabung();
}
else
{cout<<endl;
cout<<" ....................................................."<<endl;
cout<<" || ||"<<endl;
cout<<" || MAAF,PERINTAH YANG ANDA MASUKAN SALAH ||"<<endl;
cout<<" || ||"<<endl;
cout<<" ....................................................."<<endl;
bawah:
cout<<endl;
nabung();
}
getch();
break;
}
case 3:
{
float pin,nama;
int pass;
ahatas:
system("color 37");
system("cls");
cout<< " .-------------------------------------------------------------."<<endl;
cout<< " |_________________________BANK DCA____________________________|"<<endl;
cout<< " "<<endl;
cout<< " Picik kata sandi pian : "<<endl;
cout<<" ";cin>>pass;
if(pass==556699)
{
cout<< " User: Dianawati"<<endl;
goto dawon;
}
else if(pass==12345)
{
cout<< "User: Justin bieber"<<endl;
goto dawon;
}
else if(pass==89890)
{
cout<< "User: Katty perry"<<endl;
goto dawon;
}
else
{
char lagi;
system("cls");
cout<<endl;
cout<<endl;
cout<<endl;
cout<<" KATA SANDI PIAN KADA BUJUR!!"<<endl;
cout<< " Handak Mancuba Lagi Kah ?(Y/T): " ;
cin>>lagi;
if(lagi=='Y'||lagi=='y')
goto ahatas;
else if(lagi=='T'||lagi=='t')
goto bahawah;
}
{
dawon:
system("cls");
cout<< " +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"<<endl;
cout<< " + BANK DCA (Diana Central Asia) +"<<endl;
cout<< " + BANK GASAN KARYAWAN PT.DIANA GUMMY GROUP COMPANY +"<<endl;
cout<< " +-------------------------------------------------------------+"<<endl;
cout<< " +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"<<endl;
cout<<endl;
cout<< " .-------------------------------------------------------------."<<endl;
cout<< " | PILIH MENU NANG DIKAHANDAKI |"<<endl;
cout<< " | |"<<endl;
cout<< " | 1. Melihati Saldo Wara |"<<endl;
cout<< " | 2. Meambil Duit |"<<endl;
cout<< " | 3. Manimbun Duit |"<<endl;
cout<< " | 4. Bahitung gajihan karyawan |"<<endl;
cout<< " | 5. Nukar pulsa |"<<endl;
cout<< " | 6. Handak Tahu Barapa Mun Bahurup Duit Asing |"<<endl;
cout<< " | 7. Ubah Bahasa |"<<endl;
cout<< " | 8. Ampihan |"<<endl;
cout<< " '-------------------------------------------------------------'"<<endl;
cout<< " PILIH NANG DIKAHANDAKI [1-8]..";
cin>>pilih;
system("cls");
if(pilih==1)
{
char ulang;
double saldo1=500000;
cout<<endl;
cout<<" ||||||||||||||||||||||||||||||||||||||||||||||||||||"<<endl;
cout<<" || ||"<<endl;
cout<<" || ||"<<endl;
cout<<" || ||"<<endl;
cout<<" || DUIT PIAN ISINYA Rp. "<<saldo1<<" ||"<<endl;
cout<<" || ||"<<endl;
cout<<" || KASI PIAN MANABUNG TARUS..kupina KULIHAN HADIAH||"<<endl;
cout<<" || ||"<<endl;
cout<<" ||||||||||||||||||||||||||||||||||||||||||||||||||||"<<endl;
cout<<endl;
cout<<"HANDAK KA PAMULAAN KAH ? [Y/T] : ";
cin>>ulang;
system("cls");
if(ulang=='Y'||ulang=='y')
goto ahatas;
if(ulang=='T'||ulang=='t')
goto bahawah;
else
cout<<endl;
cout<<" ....................................................."<<endl;
cout<<" || ||"<<endl;
cout<<" || MAAFLAH,NANG PIAN PICIK TU SALAH NAH ||"<<endl;
cout<<" || ||"<<endl;
cout<<" ....................................................."<<endl;
}
else if(pilih==2)
{
long saldo[20],saldo1,ambil;
int ulang1;
saldo1=500000;
p111:
system("cls");
cout<<endl;
cout<<" |||||||||||||||||||||||||||||||||||||||||||||||||||||"<<endl;
cout<<" || ||"<<endl;
cout<<" || ||"<<endl;
cout<<" || PIAN BAISI DUIT Rp. "<<saldo1<<" ||"<<endl;
cout<<" || ||"<<endl;
cout<<" || ||"<<endl;
cout<<" |||||||||||||||||||||||||||||||||||||||||||||||||||||"<<endl;
cout<<endl;
cout<<" PICIK SAAPA PIAN HANDAK MAAMBIL DUIT: Rp. ";
cin>>ambil;
if(ambil>=500000)
{
system("cls");
cout<<endl<<endl;
cout<<" SALDO PIAN KADA CUKUP"<<endl;
cout<<"......................................................"<<endl;
cout<<"| |"<<endl;
cout<<"| Picik 1 Amun Handak Beasa Pulang |"<<endl;
cout<<"| Picik 2 Amun Handak Ka Program Pamulaan |"<<endl;
cout<<"| Picik 3 Amun Handak Kaluar |"<<endl;
cout<<"| |"<<endl;
cout<<"......................................................."<<endl;
cout<<"PICIK PILIHAN PIAN : ";
cin>>ulang1;
if(ulang1==1)
goto p111;
if(ulang1==2)
goto atas;
if(ulang1==3)
goto bawah;
else
cout<<endl;
cout<<" ....................................................."<<endl;
cout<<" || ||"<<endl;
cout<<" || MAAF,NANG PIAN PICIK TU SALAH ||"<<endl;
cout<<" || ||"<<endl;
cout<<" ....................................................."<<endl;
}
if(ambil<=500000)
{
saldo[20]=saldo1-ambil;
}
system("cls");
cout<<endl;
garis();
cout<<endl;
cout<<" DUIT NANG TASISA KAYAH PIAN : Rp. "<<saldo[20]<<endl;
cout<<endl;
garis();
cout<<endl;
cout<<"......................................................"<<endl;
cout<<"| |"<<endl;
cout<<"| Picik 1 Amun Handak Beasa Pulang |"<<endl;
cout<<"| Picik 2 Amun Handak Ka Program Pamulaan |"<<endl;
cout<<"| Picik 3 Amun Handak Kaluar |"<<endl;
cout<<"| |"<<endl;
cout<<"......................................................."<<endl;
cout<<"PICIK KANDAK PIAN : ";
cin>>ulang1;
if(ulang1==1)
goto p111;
if(ulang1==2)
goto ahatas;
if(ulang1==3)
goto bahawah;
else
cout<<endl;
cout<<" ....................................................."<<endl;
cout<<" || ||"<<endl;
cout<<" || MAAFLAH,NANG PIAN PICIK TU SALAH NAH ||"<<endl;
cout<<" || ||"<<endl;
cout<<" ....................................................."<<endl;
}
else if(pilih==3)
{
double saldo1=500000,duit,jumlah[20];
int ulang2;
p000:
system("cls");
cout<<" |||||||||||||||||||||||||||||||||||||||||||||||||||||"<<endl;
cout<<" || ||"<<endl;
cout<<" || ||"<<endl;
cout<<" || PIAN BAISI DUIT : Rp. "<<saldo1<<" ||"<<endl;
cout<<" || ||"<<endl;
cout<<" || ||"<<endl;
cout<<" |||||||||||||||||||||||||||||||||||||||||||||||||||||"<<endl;
cout<<endl;
cout<<" PICIK SA'APA PIAN HANDAK MANABUNG PULANG :Rp. ";
cin>>duit;
system("cls");
jumlah[20]=saldo1+duit;
cout<<endl;
cout<<" |||||||||||||||||||||||||||||||||||||||||||||||||||||||||"<<endl;
cout<<" || ||"<<endl;
cout<<" || DUIT PIAN SUDAH KAMI TAMBAHI ||"<<endl;
cout<<" || JADI,KISA DUIT PIAN : Rp. "<<jumlah[20]<<" ||"<<endl;
cout<<" || ||"<<endl;
cout<<" || ||"<<endl;
cout<<" |||||||||||||||||||||||||||||||||||||||||||||||||||||||||"<<endl;
cout<<endl;
garis();
cout<<endl;
cout<<"......................................................"<<endl;
cout<<"| |"<<endl;
cout<<"| Picik 1 Amun Handak Beasa Pulang |"<<endl;
cout<<"| Picik 2 Amun Handak Ka Program Pamulaan |"<<endl;
cout<<"| Picik 3 Amun Handak Kaluar |"<<endl;
cout<<"| |"<<endl;
cout<<"......................................................."<<endl;
cout<<"PILIH NAPA NANG PIAN KAHANDAKI : ";
cin>>ulang2;
if(ulang2==1)
goto p000;
if(ulang2==2)
goto ahatas;
if(ulang2==3)
goto bahawah;
else
cout<<endl;
cout<<" ....................................................."<<endl;
cout<<" || ||"<<endl;
cout<<" || MAAFLAH,NANG PIAN PICIK TU SALAH NAH ||"<<endl;
cout<<" || ||"<<endl;
cout<<" ....................................................."<<endl;
}
else if(pilih==4)
{int baris,kolom;
char nama[10][10];
int data_jual[10][10];
long gaj;
int ulang3;
p888:
system("cls");
cout<< " ======================================================="<<endl;
cout<< " MAHITUNG GAJIH KARYAWAN PT.Diana Gummy Group Company"<<endl;
cout<< " ======================================================="<<endl;
cout<<endl;
cout<<"Picikan Sa'apa karyawan Nang Handak dihitung : ";
cin>>baris;
cout<<"Picik Numur 7 gasan mahitung sakali gajihan [7 hari] : ";
cin>>kolom;
cout<<endl;
for(int i=1; i<=baris; i++)
{
cout<<"Naran Karyawan ke - "<<i<<" : ";
cin>>nama[i];
}
cout<<endl;
for(int i=1; i<=baris; i++)
{
for(int j=1; j<=kolom; j++)
{
cout<<"Kar/Hari Ke- "<<i<<"."<<j<<endl;
cout<<"Jumlah Karet/kg : ";
cin>>data_jual[i][j];
}
cout<<endl;
}
cout<<endl;
system("cls");
cout<<" LAPORAN PENGGAJIHAN"<<endl;
cout<<"----------------------------------------------------------------------------"<<endl;
cout<<"No Naran HARI Jumlah Kg Gaji Didapat "<<endl;
cout<<" -----------------------------------------------------------------"<<endl;
cout<<" 1 2 3 4 5 6 7 "<<endl;
cout<<"----------------------------------------------------------------------------"<<endl;
for(int i=1; i<=baris; i++)
{
cout<<setiosflags(ios::left)<<setw(4)<<i;
cout<<setiosflags(ios::left)<<setw(7)<<nama[i];
int jum=0;
for(int j=1; j<=kolom; j++)
{
cout<<setiosflags(ios::left)<<setw(6);
cout<<data_jual[i][j];
jum=jum+data_jual[i][j];
}
cout<<setiosflags(ios::left)<<setw(13)<<jum;
if(jum<=10)
{gaj=jum*3000;
}
else
{
gaj=(10*3000)+((jum-10)*5000);
}
cout<<setiosflags(ios::left)<<setw(6)<<gaj;
cout<<endl;
}
cout<< "----------------------------------------------------------------------------"<<endl;
cout<<endl;
cout<<endl;
cout<<endl;
cout<<"......................................................"<<endl;
cout<<"| |"<<endl;
cout<<"| Picik 1 Amun Handak Beasa Pulang |"<<endl;
cout<<"| Picik 2 Amun Handak Ka Program Pamulaan |"<<endl;
cout<<"| Picik 3 Amun Handak Kaluar |"<<endl;
cout<<"| |"<<endl;
cout<<"......................................................."<<endl;
cout<<"PILIH NAPA NANG PIAN HANDAKI : ";
cin>>ulang3;
if(ulang3==1)
goto p888;
if(ulang3==2)
goto ahatas;
if(ulang3==3)
goto bahawah;
else
cout<<endl;
cout<<" ....................................................."<<endl;
cout<<" || ||"<<endl;
cout<<" || MAAFLAH,NANG PIAN PICIK TU SALAH NAH ||"<<endl;
cout<<" || ||"<<endl;
cout<<" ....................................................."<<endl;
}
else if(pilih==5)
{
int nominal,hrg_pls;
string pulsa;
int a;
int ulang4;
p177:
system("cls");
cout<<endl;
garis();
cout<<" NUKAR PULSA KA SABARATAAN OPERATOR "<<endl;
garis();
cout<<" | PULSA | HARGA |"<<endl;
cout<<" |----------------------------|"<<endl;
cout<<" | 5000 | Rp.5500.00 |"<<endl;
cout<<" | 10.000 | Rp.10.500.00|"<<endl;
cout<<" | 15.000 | Rp.15.500.00|"<<endl;
cout<<" | | |"<<endl;
cout<<" | dst.Kelipatan 5000 |"<<endl;
cout<<" |____________________________|"<<endl;
cout<<endl;
cout<<"PILIH NUMUR PIAN KARTU NAPAH :"<<endl;
cout<<"1.TELKOMSEL"<<endl;
cout<<"2.XL"<<endl;
cout<<"3.EXIS"<<endl;
cout<<"4.INDOSAT"<<endl;
cout<<"_________________________________________________"<<endl;
cout<<"Pilih haja [1-4] :";
cin>>a;
cout<<"Barapa Numur Hape Pian : ";
cin>>pulsa;
cout<<"Isi Barapa (KELIPATAN 5000) : ";
cin>>nominal;
system("cls");
hrg_pls=500+nominal;
cout<<endl;
garis();
cout<<endl;
cout<<" SUDAH MASUK PULSANYA TU,NUMUR HP NYA INI KALO "<<pulsa<<" ,ISI "<<nominal<<endl;
cout<<" NANG HARUS PIAN BAYAR Rp."<<hrg_pls<<endl;
garis();
iklan_trans();
cout<<endl;
cout<<"......................................................."<<endl;
cout<<"| |"<<endl;
cout<<"| Ketik 1 Amun Handak Ba'asa |"<<endl;
cout<<"| Ketik 2 Amun Handak Kapamulaan |"<<endl;
cout<<"| Ketik 3 Amun Handak Ampih |"<<endl;
cout<<"| |"<<endl;
cout<<"......................................................."<<endl;
cout<<"PILIH NAPA NANG PIAN KAHANDAKI : ";
cin>>ulang4;
if(ulang4==1)
goto p177;
if(ulang4==2)
goto ahatas;
if(ulang4==3)
goto bahawah;
else
system("cls");
cout<<endl;
cout<<" ....................................................."<<endl;
cout<<" || ||"<<endl;
cout<<" || MAAFLAH,NANG PIAN PICIK TU SALAH NAH ||"<<endl;
cout<<" || ||"<<endl;
cout<<" ....................................................."<<endl;
}
else if(pilih==6)
{
long uang;
long hasil;
int pili,ulang5;
p990:
system("cls");
cout<<endl;
cout<<"___________________________________________________"<<endl;
cout<<" HANDAK TAHU MUN BAHURUP KA DUIT ASING "<<endl;
cout<<"---------------------------------------------------"<<endl;
cout<<" PILIH HURUPAN DUITNYA : "<<endl;
cout<<" 1. USD (Dollar Amerika) "<<endl;
cout<<" 2. AUD (Dollar Australia) "<<endl;
cout<<" 3. JPY (Yen Jepang) "<<endl;
cout<<" 4. EUR (Euro) "<<endl;
cout<<" 5. Kalo ai panasaran "<<endl;
cout<<" "<<endl;
cout<<endl;
cout<<"PILIH NANG PIAN KAHANDAK : "; cin>>pili;
cout<<endl;
if(pili==1)
{
float uang;
float hasil;
cout<<"Masukan Sa'apa duitnya : Rp."; cin>>uang;
hasil=uang*0.0007;
cout<<"----------------------------------------------------------"<<endl;
cout<<" Nilai Rp."<<uang<<" Sama lawan "<<hasil<<" U$"<<endl;
cout<<"----------------------------------------------------------"<<endl;
}
else if(pili==2)
{
float uang;
float hasil;
cout<<"Masukkan Sa'apa duitnya : Rp."; cin>>uang;
hasil=uang*0.0001;
cout<<"----------------------------------------------------------"<<endl;
cout<<" Nilai Rp."<<uang<<" Sama Lawan "<<hasil<<" AU$"<<endl;
cout<<"----------------------------------------------------------"<<endl;
}
else if(pili==3)
{
float uang;
float hasil;
cout<<"Masukkan Sa'apa duitnya : Rp."; cin>>uang;
hasil=uang*0.01;
cout<<"-----------------------------------------------------------"<<endl;
cout<<" Nilai Rp."<<uang<<" Sama Lawan "<<hasil<<" YEN"<<endl;
cout<<"-----------------------------------------------------------"<<endl;
}
else if(pili==4)
{
float uang;
float hasil;
cout<<"Masukkan Sa'apa duitnya : Rp."; cin>>uang;
hasil=uang*0.0001;
cout<<"----------------------------------------------------------"<<endl;
cout<<" Nilai Rp."<<uang<<" EUR Sama Lawan"<<hasil<<" POUNDSTERLING"<<endl;
cout<<"----------------------------------------------------------"<<endl;
}
else if(pili==5)
{
system("cls");
cout<<"Mun Bahurup Matan Duit Asing ka Rupiah(IDR)"<<endl;
cout<<"--------------------------------"<<endl;
cout<<"1 USD = 13475 IDR"<<endl;
cout<<"1 AUD = 10075 IDR"<<endl;
cout<<"1 JPY = 125 IDR"<<endl;
cout<<"1 EUR = 14250 IDR"<<endl;
}
cout<<endl;
cout<<"......................................................."<<endl;
cout<<"| |"<<endl;
cout<<"| Ketik 1 Amun Handak Ba'asa |"<<endl;
cout<<"| Ketik 2 Amun Handak Kapamulaan |"<<endl;
cout<<"| Ketik 3 Amun Handak Ampih |"<<endl;
cout<<"| |"<<endl;
cout<<"......................................................."<<endl;
cout<<endl;
cout<<"KAHANDAK PIAN : ";
cin>>ulang5;
if(ulang5==1)
goto p990;
if(ulang5==2)
goto ahatas;
if(ulang5==3)
goto bahawah;
else
cout<<endl;
cout<<" ....................................................."<<endl;
cout<<" || ||"<<endl;
cout<<" || MAAFLAH,NANG PIAN PICIK TU SALAH NAH ||"<<endl;
cout<<" || ||"<<endl;
cout<<" ....................................................."<<endl;
}
else if(pilih==7)
{
cout<<endl;
goto pbahasa;
}
else if(pilih==8)
{
nabung();
}
else
{cout<<endl;
cout<<" ....................................................."<<endl;
cout<<" || ||"<<endl;
cout<<" || MAAFLAH,NANG PIAN PICIK TU SALAH NAH ||"<<endl;
cout<<" || ||"<<endl;
cout<<" ....................................................."<<endl;
bahawah:
cout<<endl;
nabung();
}
getch();
}
break;
}
default:
{
cout<<endl;
cout<<endl;
cout<<" NOT AVAILABLE,PROGRAM HAS STOP "<<endl;
cout<<" PILIHAN TAK TERSEDIA,PROGRAM TERHENTI"<<endl;
cout<<" PILIHAN PIAN KADADA TABUAT,PROGRAM AMPIHAN "<<endl;
cout<<endl;
getch ();
}
}
}
}
}
Tidak ada komentar:
Posting Komentar