†`Li†o`† Admin
Posts : 80 Points : 168 Reputation : 9 Birthday : 1995-11-16 Join date : 2011-08-31 Age : 28 Location : Mayapa Calamba Laguna Job/hobbies : Playing Computer Games.
| Subject: A Program that will Compute the Salaray of Employee. Mon Oct 03, 2011 7:11 am | |
| - Quote :
- //COLOR
#include<iostream.h> #include<dos.h> #include<conio.h> main(){ clrscr(); float grosspay; float hours; float rate; float deductions; float sss; float philhealth; float pagibig; float tax; float netpay; float cashadvance; float totaldeduction; textcolor(BLUE+BLINK); gotoxy(30,6);cputs("L"); textcolor(YELLOW+BLINK); gotoxy(30,7);cputs("I"); textcolor(RED+BLINK); gotoxy(30,8);cputs("T"); textcolor(GREEN+BLINK); gotoxy(30,9);cputs("O"); gotoxy(30,10);cputs(" "); textcolor(12+BLINK); gotoxy(30,11);cputs("V"); textcolor(4+BLINK); gotoxy(30,12);cputs("I"); textcolor(BLUE+BLINK); gotoxy(30,13);cputs("L"); textcolor(GREEN+BLINK); gotoxy(30,14);cputs("L"); textcolor(7+BLINK); gotoxy(30,15);cputs("A"); textcolor(9+BLINK); gotoxy(30,16);cputs("G"); textcolor(10+BLINK); gotoxy(30,17);cputs("R"); textcolor(2+BLINK); gotoxy(30,18);cputs("A"); textcolor(4+BLINK); gotoxy(30,19);cputs("C"); textcolor(8+BLINK); gotoxy(30,20);cputs("I"); textcolor(12+BLINK); gotoxy(30,21);cputs("A"); textcolor(3+BLINK); gotoxy(30,22); cputs("\Input Number Of Hours: "); cin>>hours; textcolor(4+BLINK); cputs("\Input Rate Per Hour: "); cin>>rate; textcolor(5+BLINK); gotoxy(30,23); grosspay=hours*rate; textcolor(6+BLINK); gotoxy(30,24); cputs("\GrossPay is: "); cout<<grosspay<<endl;
textcolor(7+BLINK); gotoxy(30,25); sss=grosspay*.05; cputs("\SSS is: "); cout<<<sss<<endl;
philhealth=grosspay*.05; cputs("\PhilHealth is: "); cout<<philhealth<<endl;
pagibig=grosspay*.05; cputs("\Pagibig is: "); cout<<pagibig<<endl;
tax=grosspay*.10; cputs("\Tax is: "); cout<<tax<<endl; cputs("\\Input Third Number: "); cin>>cashadvance; totaldeduction=(sss+philhealth+pagibig+tax); cputs("\Total Deductions is: "); cout<<totaldeduction<<endl;
netpay=grosspay-totaldeduction; cputs("\NetPay is: "); cout<<netpay<<endl; getch(); return 0; }
| |
|