Advertisement
Guest User

Untitled

a guest
Aug 27th, 2017
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.68 KB | None | 0 0
  1. using System;
  2.  
  3. namespace firma
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             int workDaysInMonth = int.Parse(Console.ReadLine());
  10.             double daySalary = double.Parse(Console.ReadLine());
  11.             double usdToLev = double.Parse(Console.ReadLine());
  12.  
  13.             double monthSalary = workDaysInMonth * daySalary;
  14.             double yearSalary = monthSalary * 12 + monthSalary * 2.5;
  15.             double taxes = yearSalary * 0.25;
  16.             double netProfit = yearSalary - taxes ;
  17.             double avgProfitPerDay = netProfit * usdToLev / 365;
  18.  
  19.             Console.WriteLine("{0:F2}", avgProfitPerDay);
  20.         }
  21.     }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement