Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace DaillyProfit
- {
- class Program
- {
- static void Main(string[] args)
- {
- var workDays = int.Parse(Console.ReadLine());
- var dailySalary = double.Parse(Console.ReadLine());
- var usdRate = double.Parse(Console.ReadLine());
- var totalMontlySalary = workDays * dailySalary;
- var yearIncome = totalMontlySalary * 12 + totalMontlySalary * 2.5;
- var afterTax = yearIncome * 0.25;
- var totalYearIncome = (yearIncome-afterTax) * usdRate;
- var daylyAverage = totalYearIncome / 365;
- Console.WriteLine("{0:f2}",daylyAverage);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment