Advertisement
Guest User

s

a guest
Sep 17th, 2014
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. import java.util.*;
  2. public class Tar11
  3. {
  4. static Scanner reader=new Scanner(System.in);
  5. public static void main(String[]args)
  6. {
  7. int hours;
  8. double pay_per_hour,tax_percent,salary_before,salary_after;
  9. System.out.println("הקש מספר שעות");
  10. hours=reader.nextInt();
  11. System.out.println("הקש תשלום לשעה");
  12. pay_per_hour=reader.nextDouble();
  13. System.out.println("הקש את אחוזי המס");
  14. tax_percent=reader.nextDouble();
  15. salary_before=hours*pay_per_hour;
  16. salary_after=salary_before*(100-tax_percent)/100;
  17. System.out.println("שכר לפני מס"+salary_before);
  18. System.out.println("שכר אחרי מס"+salary_after);
  19. }
  20.  
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement