Advertisement
tandaleyo

Prospect In Hospitality

Nov 24th, 2015
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.52 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. class ProspectInHospitality
  8. {
  9. static void Main()
  10. {
  11. int builders = int.Parse(Console.ReadLine());
  12. int recept = int.Parse(Console.ReadLine());
  13. int chamber = int.Parse(Console.ReadLine());
  14. int tech = int.Parse(Console.ReadLine());
  15. int others = int.Parse(Console.ReadLine());
  16. decimal nickySalaryUSD = Decimal.Parse(Console.ReadLine());
  17. decimal courseUSD = Decimal.Parse(Console.ReadLine());
  18. decimal mySalary = Decimal.Parse(Console.ReadLine());
  19. decimal budget = Decimal.Parse(Console.ReadLine());
  20.  
  21.  
  22. decimal buildersBudget = builders * 1500.04M;
  23. decimal receptBudget = recept * 2102.10M;
  24. decimal chamberBudget = chamber * 1465.46M;
  25. decimal techBudget = tech * 2053.33M;
  26. decimal othersBudget = others * 3010.98M;
  27. decimal nickyBudget = nickySalaryUSD * courseUSD;
  28.  
  29.  
  30.  
  31. decimal salariesBudget = buildersBudget + receptBudget + chamberBudget + techBudget + othersBudget + nickyBudget + mySalary;
  32. Console.WriteLine("The amount is: {0:F2} lv.", salariesBudget);
  33.  
  34. if (budget >= salariesBudget)
  35. {
  36. Console.WriteLine("YES \\ Left: {0:F2} lv.", budget - salariesBudget);
  37. }
  38. else
  39. {
  40. Console.WriteLine("NO \\ Need more: {0:F2} lv.", salariesBudget - budget);
  41. }
  42.  
  43.  
  44.  
  45.  
  46. }
  47. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement