A computer manufacturing company has the following monthly compensation policy to their sales-persons:
Minimum base salary : 1500.00
Bonus for every computer sold : 200.00
Commission on the total monthly sales : 2 percent
Since the prices of computers are changing, the sales of each computer is fixed at the beginning of
every month. Given the base salary,bonus, and commission rate, the inputs necessary to calculate the
gross salary are, the price of each computer and the number sold during the month.
The gross salary is given by the equation:
Gross salary = base salary + (quantity*bonus rate) + (quantity*price)*commission rate.
#include<stdio.h>
#define BASE_SALAR 1500.00
#define BONUS_RATE 200.00
#define COMMISSION 0.02
void main()
{
int quantity;
float gross_salary,price;
float bonus,commission;
printf("Input number sold and price\n");
scanf("%d %f",&quantity,&price);
bonus = BONUS_RATE*quantity;
commission=COMMISSION*quantity*price;
gross_salary=BASE_SALAR+bonus+commission;
printf("\n");
printf("Bonus =%6.2f\n",bonus);
printf("Commission =%6.2f\n",commission);
printf("Gross salary =%6.2f\n",gross_salary);
getch();
}
Minimum base salary : 1500.00
Bonus for every computer sold : 200.00
Commission on the total monthly sales : 2 percent
Since the prices of computers are changing, the sales of each computer is fixed at the beginning of
every month. Given the base salary,bonus, and commission rate, the inputs necessary to calculate the
gross salary are, the price of each computer and the number sold during the month.
The gross salary is given by the equation:
Gross salary = base salary + (quantity*bonus rate) + (quantity*price)*commission rate.
#include<stdio.h>
#define BASE_SALAR 1500.00
#define BONUS_RATE 200.00
#define COMMISSION 0.02
void main()
{
int quantity;
float gross_salary,price;
float bonus,commission;
printf("Input number sold and price\n");
scanf("%d %f",&quantity,&price);
bonus = BONUS_RATE*quantity;
commission=COMMISSION*quantity*price;
gross_salary=BASE_SALAR+bonus+commission;
printf("\n");
printf("Bonus =%6.2f\n",bonus);
printf("Commission =%6.2f\n",commission);
printf("Gross salary =%6.2f\n",gross_salary);
getch();
}
The CBIT organisation giving the basic salary for his employees additional League giving 75 54 as a bonus for selling of each computer and also giving 2% Commission at total cost of nest of computers in python
ReplyDelete