Advertisement
tochka

Untitled

Jul 24th, 2017
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.39 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 i_am_a_joke
  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 place;
  17. double price = 0.0;
  18. string location;
  19.  
  20. if (budget <= 1000)
  21. {
  22.  
  23.  
  24. if(season == "Summer")
  25. {
  26. location = "Camp";
  27. place = "Alaska";
  28. price = budget * 0.65;
  29. Console.WriteLine($"{place} - {location} - {price:f2}");
  30.  
  31. }
  32. else if (season == "Winter")
  33. {
  34. location = "Camp";
  35. place = "Morocco";
  36. price = budget * 0.45;
  37. Console.WriteLine($"{place} - {location} - {price:f2}");
  38. }
  39. }
  40.  
  41. else if (budget > 1000 && budget <= 3000)
  42. {
  43.  
  44.  
  45. if (season == "Summer")
  46. {
  47. location = "Hut";
  48. place = "Alaska";
  49. price = budget * 0.8;
  50. Console.WriteLine($"{place} - {location} - {price:f2}");
  51. }
  52. else if (season == "Winter")
  53. {
  54. location = "Hut";
  55. place = "Morocco";
  56. price = budget * 0.6;
  57. Console.WriteLine($"{place} - {location} - {price:f2}");
  58. }
  59.  
  60. }
  61.  
  62. else if (budget > 3000)
  63. {
  64.  
  65.  
  66. if(season == "Summer")
  67. {
  68. location = "Hotel";
  69. place = "Alaska";
  70. price = budget * 0.9;
  71. Console.WriteLine($"{place} - {location} - {price:f2}");
  72. }
  73. else if (season == "Winter")
  74. {
  75. location = "Hotel";
  76. place = "Morocco";
  77. price = budget * 0.9;
  78. Console.WriteLine($"{place} - {location} - {price:f2}");
  79. }
  80. }
  81.  
  82.  
  83.  
  84.  
  85. }
  86. }
  87. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement