Advertisement
SonGokuBg

Untitled

Dec 24th, 2019
284
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.82 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. namespace Travel
  8. {
  9. class Program
  10. {
  11. static void Main(string[] args)
  12. {
  13. double Budget = double.Parse(Console.ReadLine());
  14. string Season = Console.ReadLine();
  15.  
  16. string Bulgaria = "Bulgaria";
  17. string Balkans = "Balkans";
  18. string Europe = "Europe";
  19. string Destinaciq = "";
  20. string place = "";
  21. double ProcentOfBudget = 0.00;
  22.  
  23. if (Budget <= 100.00)
  24. {
  25. Destinaciq = Bulgaria;
  26. if (Season == "summer")
  27. {
  28. place = "Camp";
  29. ProcentOfBudget = Budget * 0.3;
  30. }
  31. else if (Season == "winter")
  32. {
  33. place = "Hotel";
  34. ProcentOfBudget = Budget * 0.7;
  35. }
  36. }
  37. else if (Budget <= 1000.00 && Budget > 100.00)
  38. {
  39. Destinaciq = Balkans;
  40. if (Season == "summer")
  41. {
  42. place = "Camp";
  43. ProcentOfBudget = Budget * 0.4;
  44. }
  45. else if (Season == "winter")
  46. {
  47. place = "Hotel";
  48. ProcentOfBudget = Budget * 0.8;
  49. }
  50. }
  51. else if (Budget > 1000.00)
  52. {
  53. Destinaciq = Europe;
  54. place = "Hotel";
  55. ProcentOfBudget = Budget * 0.9;
  56. }
  57. Console.WriteLine("Somewhere in {0}", Destinaciq);
  58. Console.WriteLine("{0}" + " - " + "{1:F2}", place, ProcentOfBudget);
  59. }
  60. }
  61. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement