Advertisement
Guest User

Untitled

a guest
Sep 20th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. #include<stdio.h>
  2. #include <iostream>
  3. using namespace std;
  4. int main()
  5. {
  6. char name[50];
  7. float sallery;
  8. float EPF;
  9. float tax;
  10. float net;
  11.  
  12.  
  13. cout << "Enter student name : ";
  14. cin >> name;
  15. cout << "Enter the sallery : ";
  16. cin >> sallery;
  17.  
  18. if(sallery <= 3000)
  19. {
  20. EPF = sallery * 0;
  21. tax = sallery * 0.03;
  22. }
  23. else if(sallery > 3000)
  24. {
  25. EPF = sallery * 0.04;
  26. tax = sallery * 0.05;
  27. }
  28.  
  29. net = sallery - EPF - tax;
  30.  
  31. cout << "tatal sallery = " << net;
  32. return 0;
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement