Advertisement
Guest User

Untitled

a guest
Dec 7th, 2019
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. class Program8
  2. {
  3. static void Main(string[] args)
  4. {
  5. double kwota, b, d, c, h, f, g, e, wyplata;
  6. Console.WriteLine("Zadanie 8");
  7. Console.WriteLine("Podaj swój dochód");
  8. kwota = double.Parse(Console.ReadLine());
  9. Console.WriteLine("Umowa o gówno");
  10. b = kwota * 0.0976 + kwota * 0.015 + kwota * 0.0245;
  11. Console.WriteLine("Składka finansowa pracownika wynosi: {0,-10:F2}", b);
  12. c = kwota - b;
  13. d = 0.09 * c;
  14. Console.WriteLine("Składka zdrowotna wynosi: {0,-10:F2}",d);
  15. f = 111.25;
  16. g = kwota - f - b;
  17. e = 0.0775 * c;
  18. h = (0.18 * g) - 46.33 - e;
  19. wyplata = kwota - b - d - h;
  20. Console.WriteLine("Zaliczka PIT wynosi: {0,-10:F0} ", h);
  21. Console.WriteLine("Twoje wynagrodzenie netto wynosi: {0,-10:F2}", wyplata);
  22. Console.WriteLine("");
  23. Console.WriteLine("Umowa zlecenie");
  24. }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement