Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class Profit {
- public static void main(String[] args) {
- Scanner console = new Scanner(System.in);
- int workingDaysInMoth = Integer.parseInt(console.nextLine());
- double dailyProfit = Double.parseDouble(console.nextLine());
- double usdExcange = Double.parseDouble(console.nextLine());
- double monthProfit = workingDaysInMoth * dailyProfit;
- double yearProfit = monthProfit * 12 + monthProfit * 2.5;
- double afterTaxes = yearProfit - ( yearProfit * 0.25);
- double profitInLeva = afterTaxes * usdExcange;
- double dailiProfitInLv = profitInLeva / 365;
- System.out.printf("%.2f", dailiProfitInLv);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment