Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class uprajnenie {
- public static void main(String[] args) {
- Scanner scanner = new Scanner(System.in);
- int workDays = Integer.parseInt(scanner.nextLine());
- double moneyPerDay = Double.parseDouble(scanner.nextLine());
- double usdToBgn = Double.parseDouble(scanner.nextLine());
- double monthSalary = workDays * moneyPerDay;
- double annualSalary = monthSalary * 12 + monthSalary * 2.5;
- double tax = annualSalary * 0.25;
- double netIncome = annualSalary - tax;
- double incomeLv = netIncome * usdToBgn;
- double averageSalary = incomeLv / 365;
- System.out.printf("%.2f", averageSalary);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement