Advertisement
Guest User

i dont know tbh

a guest
Nov 27th, 2014
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.79 KB | None | 0 0
  1. #include<stdio.h>
  2.  
  3. int totalgross, minustax, deduction, netincome;
  4.  
  5. int grossInc(int hours, int gross)
  6. {
  7.     totalgross=hours*gross;
  8.     return totalgross;
  9. }
  10.  
  11. int taxPay()
  12. {
  13.     if(totalgross>=4000)
  14.     {
  15.     minustax=totalgross*0.4;
  16.     return minustax;
  17.     }
  18.     else if(totalgross>=3000 && totalgross<3999)
  19.     {
  20.     minustax=totalgross*0.3;
  21.     return minustax;
  22.     }
  23.     else if(totalgross>=2000 && totalgross<2999)
  24.     {
  25.     minustax=totalgross*0.2;
  26.     return minustax;
  27.     }
  28.     else if (totalgross>=1000 && totalgross<1999)
  29.     {
  30.     minustax=totalgross*0.1;
  31.     return minustax;
  32.     }
  33.     else if (totalgross<1000)
  34.     {
  35.         minustax=totalgross*0.05;
  36.         return minustax;
  37.     }
  38.    
  39. }
  40.  
  41. int totalDed()
  42. {
  43.     deduction=minustax+100+100+100;
  44.     return deduction;
  45. }
  46.  
  47. int finalIncome()
  48. {
  49.     netincome=totalgross-deduction;
  50.     return netincome;
  51. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement