Advertisement
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;
- class ProspectInHospitality
- {
- static void Main()
- {
- int builders = int.Parse(Console.ReadLine());
- int recept = int.Parse(Console.ReadLine());
- int chamber = int.Parse(Console.ReadLine());
- int tech = int.Parse(Console.ReadLine());
- int others = int.Parse(Console.ReadLine());
- decimal nickySalaryUSD = Decimal.Parse(Console.ReadLine());
- decimal courseUSD = Decimal.Parse(Console.ReadLine());
- decimal mySalary = Decimal.Parse(Console.ReadLine());
- decimal budget = Decimal.Parse(Console.ReadLine());
- decimal buildersBudget = builders * 1500.04M;
- decimal receptBudget = recept * 2102.10M;
- decimal chamberBudget = chamber * 1465.46M;
- decimal techBudget = tech * 2053.33M;
- decimal othersBudget = others * 3010.98M;
- decimal nickyBudget = nickySalaryUSD * courseUSD;
- decimal salariesBudget = buildersBudget + receptBudget + chamberBudget + techBudget + othersBudget + nickyBudget + mySalary;
- Console.WriteLine("The amount is: {0:F2} lv.", salariesBudget);
- if (budget >= salariesBudget)
- {
- Console.WriteLine("YES \\ Left: {0:F2} lv.", budget - salariesBudget);
- }
- else
- {
- Console.WriteLine("NO \\ Need more: {0:F2} lv.", salariesBudget - budget);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement