nvnnaidenov

DailyEarnings - School Book 2.1

Jul 27th, 2021
1,091
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2.  
  3. class DailyEarnings
  4. {
  5.     static void Main()
  6.     {
  7.         int workDays = int.Parse(Console.ReadLine());
  8.         double dailySalary = double.Parse(Console.ReadLine());
  9.         double correctCurency = double.Parse(Console.ReadLine());
  10.  
  11.         double monthSalary = workDays * dailySalary;
  12.         double yearSalary = monthSalary * 12 + monthSalary * 2.5;
  13.         double vat = yearSalary * 0.25;
  14.         double neto = (yearSalary - vat) * correctCurency;
  15.         double result = neto / 365;
  16.  
  17.         Console.WriteLine(Math.Round(result, 2));
  18.     }
  19. }
  20.  
RAW Paste Data