C or C++ Program To Find Bonus Amount

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:


  1. C or C++ program to find bonus amount
  2. c program to check whether a number is perfect or not
  3. c program to check strong number
  4. write a c program to check given number is armstrong number or not.
  5. what is perfect number
  6. c program to find perfect square
  7. c program to find perfect number using function
  8. c program for perfect numbers between 1 and 1000
  9. perfect no program in java


Learn More :