Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Globalization;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace LiveDemo
- {
- class Program
- {
- static void Main(string[] args)
- {
- int workingDays = int.Parse(Console.ReadLine());
- double moneyEarnedForADay = double.Parse(Console.ReadLine());
- double dollarCourse = double.Parse(Console.ReadLine());
- double monthSalaryInDollars = workingDays * moneyEarnedForADay;
- double yearSalaryInDollars = (monthSalaryInDollars * 12) + (monthSalaryInDollars * 2.5);
- double tax = yearSalaryInDollars * (25.0 / 100.0);
- double totalDollarsEarned = yearSalaryInDollars - tax;
- double totalLevEarned = totalDollarsEarned * dollarCourse;
- double earningPerDayInLeva = totalLevEarned / 365;
- Console.WriteLine("{0:f2}", earningPerDayInLeva);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment