#include<iostream>
using namespace std;
int main(){
cout<<"========================================================"<<endl;
cout<<"$ PROGRAM MENGHITUNG PENDAPATAN SALESMAN $"<<endl;
cout<<"========================================================"<<endl;
float jasa,komisi,harga_jual,pendapatan;
cout<<endl;
cout<<" Masukkan pendapatan salesman hari ini (Rp.): Rp.";
cin>>harga_jual;
if(harga_jual <= 200000){
jasa = 10000;
komisi = 0.1*harga_jual;
}else if(harga_jual <= 500000){
jasa = 20000;
komisi = 0.15*harga_jual;
}else {
jasa = 30000;
komisi = 0.2*harga_jual;
}
pendapatan = jasa + komisi;
cout<<endl;
cout<<endl;
cout<<" Pendapatan sales hari ini adalah (Rp.) : Rp."<<pendapatan<<
endl;
cout<<endl;
cout<<"========================================================"<<endl;
cout<<"$ $"<<endl;
cout<<"$ Created By Ahli Program C++ $"<<endl;
cout<<"$ $"<<endl;
cout<<"========================================================"<<endl;
cout<<endl;
return 0;
}
Tidak ada komentar:
Posting Komentar