Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.*;
- public class Tar11
- {
- static Scanner reader=new Scanner(System.in);
- public static void main(String[]args)
- {
- int hours;
- double pay_per_hour,tax_percent,salary_before,salary_after;
- System.out.println("הקש מספר שעות");
- hours=reader.nextInt();
- System.out.println("הקש תשלום לשעה");
- pay_per_hour=reader.nextDouble();
- System.out.println("הקש את אחוזי המס");
- tax_percent=reader.nextDouble();
- salary_before=hours*pay_per_hour;
- salary_after=salary_before*(100-tax_percent)/100;
- System.out.println("שכר לפני מס"+salary_before);
- System.out.println("שכר אחרי מס"+salary_after);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement