#include <iostream>
#include <conio.h>
#include <stdlib.h>
char kembali,u;
using namespace std;
int main()
{
long int kode,pil;
float n,rupiah,dollar,pounds,euro,Rupiah,Dollar,DollarAwal;
long double hasil,mata_uang;
awal :
cout<<endl;
cout<<"==========================================="<<endl;
cout<<"# Aplikasi konversi mata uang #"<<endl;
cout<<"==========================================="<<endl;
cout<<"# 1.Manual #"<<endl;
cout<<"# 2.Konversi Mata Uang Asing Ke Rupiah #"<<endl;
cout<<"# 3.Konversi Mata Uang Rupiah Ke Asing #"<<endl;
cout<<"# 4.Keluar #"<<endl;
cout<<"# #"<<endl;
cout<<"==========================================="<<endl;
cout<<endl;
cout<<"Masukkan kode aplikasi (1,2,3,4) : "; cin>>kode;
cout<<endl;
switch(kode) {
case 1 : {
cout<<"==========================================="<<endl;
cout<<"# Manual konversi #"<<endl;
cout<<"==========================================="<<endl;
cout<<"# Masukan Nilai Dollar #\n";
cout<<"# 1 $ = ";
cin>>DollarAwal;
cout<<"-------------------------------------------\n";
cout<<"# Masukan Nilai Dollar : $";
cin>>Dollar;
Rupiah=DollarAwal*Dollar;
cout<<"# Hasil\n";
cout<<"# $ "<<Dollar<<" = Rp."<<Rupiah;
cout<<"\n-------------------------------------------\n";
cout<<"# Masukan Nilai Rupiah : Rp.";
cin>>Rupiah;
Dollar=Rupiah/DollarAwal;
cout<<"# Hasil\n";
cout<<"# Rp."<<Rupiah<<" = $ "<<Dollar;
cout<<"\n-------------------------------------------\n";
getch();
}
break;
cout<<endl;
case 2 : {
cout<<endl;
cout<<"==========================================="<<endl;
cout<<"# Konversi Mata Uang Asing Ke Rupiah #"<<endl;
cout<<"==========================================="<<endl;
cout<<"# 1.Dollar Ke Rupiah Rp.9600 #"<<endl;
cout<<"# 2.Poundsterling Ke Rupiah Rp.15600 #"<<endl;
cout<<"# 3.Euro Ke Rupiah Rp.12400 #"<<endl;
cout<<"# #"<<endl;
cout<<"# #"<<endl;
cout<<"==========================================="<<endl;
cout<<"Masukkan kode aplikasi (1,2,3) : "; cin>>pil;
cout<<endl;
&nbrp; cout<<"Masukkan Nilai Uang : "; cin>>mata_uang;
cout<<endl;
if(pil==1)
{
hasil=mata_uang*9600;
cout<<mata_uang<<" Dollar"<<" = "<<hasil<<" Rupiah"<<endl;
}
else if(pil==2)
{
long double hasil=mata_uang*15600;
cout<<mata_uang<<" Poudsterling"<<" = "<<hasil<<" Rupiah"<<endl;
}
else if(pil==3)
{
hasil=mata_uang*12400;
cout<<mata_uang<<" Euro"<<" = "<<hasil<<" Rupiah"<<endl;
}
else
{
cout<<"\nPilihan anda salah, silahkan ulangi dengan memasukkan pilihan yang tersedia"<<endl;
cout<<"\nTekan Enter untuk kembali ke menu utama ";cout<<endl;
u=getch();
goto awal;
cout<<endl;
}
break;
}
case 3 : {
cout<<"==========================================="<<endl;
cout<<"# Konversi Mata Uang Asing Ke Rupiah #"<<endl;
cout<<"==========================================="<<endl;
cout<<"# 1. Rupiah Ke Dollar #"<<endl;
cout<<"# 2. Rupiah Ke Poundsterling #"<<endl;
cout<<"# 3. Rupiah Ke Euro #"<<endl;
cout<<"# #"<<endl;
cout<<"# #"<<endl;
cout<<"==========================================="<<endl;
cout<<"Masukkan kode aplikasi (1,2,3) : "; cin>>pil;
cout<<endl;
cout<<"Masukkan Nilai Uang : "; cin>>mata_uang;
cout<<endl;
if(pil==1)
{
hasil=mata_uang/9600;
cout<<mata_uang<<" Rupiah"<<" = "<<hasil<<" Dollar"<<endl;
}
else if(pil==2)
{
long double hasil=mata_uang/15600;
cout<<mata_uang<<" Rupiah"<<" = "<<hasil<<" Poudsterling"<<endl;
}
else if(pil==3)
{
hasil=mata_uang/12400;
cout<<mata_uang<<" Rupiah"<<" = "<<hasil<<" Euro"<<endl;
}
else
{
cout<<"\nPilihan anda salah, silahkan ulangi dengan memasukkan pilihan yang tersedia"<<endl;
cout<<"\nTekan Enter untuk kembali ke menu utama ";cout<<endl;
u=getch();
goto awal;
cout<<endl;
}
}
break;
case 4 : {
cout<<"Tekan sembarang tombol untuk keluar";
exit(1);
}
break;
default: cout<<" Input Salah !!! "<<endl;
system("PAUSE");
goto awal;
}
system("PAUSE");
goto awal;
getch();
}
Klo binggu ini saya kasih instanya hehehhe (^_^)
ini Link Downloadnya
Klik Download
SEARCH
LATEST
3-latest-65px
Pengunjung
Categories
Refensi
(30)
Assistant of Laboratory
(18)
Linux
(13)
Keamanan Jaringan
(12)
bitcoin
(10)
Tip dan trik
(9)
Toko
(6)
Umsida
(6)
CCNA
(5)
C++
(4)
Driver
(3)
Materi
(3)
Rasberry Pi
(3)
Hardware
(2)
Uang
(2)
hadist
(2)
Kata-Kata
(1)
Keygen
(1)
Konfrimasi
(1)
adsense
(1)
mining
(1)
proxy
(1)
ranni
(1)