The company has the following bonus policy for the fiscal year:
The bonus provided will be 5% if the total sale is less than 1, 00,000 and if the sale exceeds that limit then an addition of 3% will be added on the extra sale amount. There will be a taxation of 15% on the total bonus provided. Write a program to compute the bonus amount according to the sale amount.
Solution :
#include<conio.h>
#include<stdio.h>
main()
{
int sales,x;
float bonus,bonus1;
printf("Enter your Total sales\n");
scanf("%d",&sales);
if(sales>=100000)
{x=(sales-100000);
bonus=5000+(x*3)/100;
bonus1=bonus-(bonus*15)/100;
printf("Total Bonus = %.2f",bonus1);}
else
{bonus=(sales*5)/100;
bonus1=bonus-(bonus*15)/100;
printf("Total bonus= %.2f",bonus);}
getch();
}
Tags:
- C or C++ program to find bonus amount
- c program to check whether a number is perfect or not
- c program to check strong number
- write a c program to check given number is armstrong number or not.
- what is perfect number
- c program to find perfect square
- c program to find perfect number using function
- c program for perfect numbers between 1 and 1000
- perfect no program in java