simonradev

Business

Feb 11th, 2017
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.98 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Globalization;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7.  
  8. namespace LiveDemo
  9. {
  10.     class Program
  11.     {
  12.         static void Main(string[] args)
  13.         {
  14.             int workingDays = int.Parse(Console.ReadLine());
  15.             double moneyEarnedForADay = double.Parse(Console.ReadLine());
  16.             double dollarCourse = double.Parse(Console.ReadLine());
  17.  
  18.             double monthSalaryInDollars = workingDays * moneyEarnedForADay;
  19.             double yearSalaryInDollars = (monthSalaryInDollars * 12) + (monthSalaryInDollars * 2.5);
  20.  
  21.             double tax = yearSalaryInDollars * (25.0 / 100.0);
  22.  
  23.             double totalDollarsEarned = yearSalaryInDollars - tax;
  24.  
  25.             double totalLevEarned = totalDollarsEarned * dollarCourse;
  26.  
  27.             double earningPerDayInLeva = totalLevEarned / 365;
  28.  
  29.             Console.WriteLine("{0:f2}", earningPerDayInLeva);
  30.         }
  31.     }
  32. }
Advertisement
Add Comment
Please, Sign In to add comment