Senin, 09 Januari 2012

tugas uas gaji uru

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

void main()
{
int pokok,uas,raya,pinjam,bank;
float x,y,z,a;
float bersih;
cout<<"---GAJI---PEGAWAI---"<<endl;

cout<<"*) Gaji pokok : Rp ";
cin>>pokok;
cout<<endl;
cout<<"--------------------"<<endl;
cout<<"*) Tunjangan : "<<endl;
cout<<"   a) pembuatan soal uas : Rp ";
cin>>uas;
cout<<endl;
cout<<"   b) tunjangan Hari raya : Rp ";
cin>>raya;
cout<<endl;
cout<<"   c)  : Rp ";
cout<<endl;
x=pokok+uas+raya;
cout<<"*) Photongan : "<<endl;
cout<<"   1) pinjaman koperasi : Rp ";
cin>>pinjam;
cout<<endl;
y=pinjam*2/100;
cout<<"      bunga 5%: "<<endl;
cout<<"   2) pinjaman bank : Rp ";
cin>>bank;
cout<<"      bunga 1%: "<<endl;
cout<<endl;
z=bank*1/100;
a=pinjam+y+bank+z;
bersih=x-a;
cout<<"*) Gaji bersih : Rp "<<bersih;
getch();

}

0 komentar:

Posting Komentar

Twitter Delicious Facebook Digg Stumbleupon Favorites More

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Hostgator Discount Code