Monthly Salary And Commission Of An Employee
/* PROGRAM TO ACCEPT MONTHLY SALARY AND COMMISSION OF AN EMPLOYEE AND THEN DISPLAY THE BONUS ENTITLED FOR THE EMPLOYEE BASED ON THE FOLLOWING CONDITIONS IF THE TOTAL PAY OF AN EMPLOYEE < 10000 THEN BONUS = 20% OF ANNUAL SALARY + 3 MONTH'S OF COMMISSION ELSE BONUS = 10% OF ANNUAL SALARY + 1.5 MONTH'S OF COMMISSION */ #include
#include
void main() { int sal,com; float bonus; clrscr(); printf("\nEnter monthly salary and commission of an employee\n\n"); scanf("%d%d",&sal,&com); if((sal+com)<10000) bonus = (0.20*12*sal)+(3*com); else bonus = (0.10*12*sal)+(1.5*com); printf("\nbonus entitled for the employee = %f",bonus); getch(); }
Please send comments to
vgdarur.javafive@blogger.com
Copyright © 2008 - iForeRunner.com
http://www.iforerunner.com/