Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class ProspectInHospitality
- {
- static void Main()
- {
- decimal builders = decimal.Parse(Console.ReadLine());
- builders = builders * 1500.04m;
- decimal receptionists = decimal.Parse(Console.ReadLine());
- receptionists = receptionists * 2102.10m;
- decimal chambermaids = decimal.Parse(Console.ReadLine());
- chambermaids = chambermaids * 1465.46m;
- decimal technicians = decimal.Parse(Console.ReadLine());
- technicians = technicians * 2053.33m;
- decimal otherStaff = decimal.Parse(Console.ReadLine());
- otherStaff = otherStaff * 3010.98m;
- decimal nikiSalaryUSD = decimal.Parse(Console.ReadLine());
- decimal currencyRateUSA = decimal.Parse(Console.ReadLine());
- decimal yourSalary = decimal.Parse(Console.ReadLine());
- decimal budget = decimal.Parse(Console.ReadLine());
- nikiSalaryUSD = nikiSalaryUSD * currencyRateUSA;
- decimal amountResult = builders + receptionists + chambermaids + technicians + otherStaff + nikiSalaryUSD + yourSalary;
- Console.WriteLine("The amount is: {0:F2} lv.", amountResult);
- if (budget >= amountResult)
- {
- budget = budget - amountResult;
- Console.WriteLine("YES \\ Left: {0:F2} lv.",budget);
- }
- else if(budget <= amountResult)
- {
- amountResult = amountResult - budget;
- Console.WriteLine("NO \\ Need more: {0:F2} lv.", amountResult);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement