sivancheva

Pute6estvie

May 4th, 2017
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.39 KB | None | 0 0
  1. using System;
  2.  
  3. public class Program
  4. {
  5. public static void Main()
  6. {
  7. var money = double.Parse(Console.ReadLine());
  8. var season = Console.ReadLine();
  9.  
  10. if ( season == "summer" && money <= 100)
  11. {
  12.  
  13. double budget = 0.3* money;
  14. Console.WriteLine("Somewhere in Bulgaria");
  15. Console.WriteLine("Camp" + "-" + "{0:f2}", budget);
  16. }
  17. else if ( season == "summer" && money <= 1000 && money > 100)
  18. {
  19.  
  20. double budget = 0.4* money;
  21. Console.WriteLine("Somewhere in Balkans");
  22. Console.WriteLine("Camp" + "-" + "{0:f2}", budget);
  23. }
  24.  
  25. else if ( money >= 1000 && season == "summer" )
  26. {
  27.  
  28. double budget = 0.9* money;
  29. Console.WriteLine("Somewhere in Europe");
  30. Console.WriteLine("Hotel" + "-" + "{0:f2}", budget);
  31. }
  32. else if ( money >= 1000 && season == "winter" )
  33. {
  34.  
  35. double budget = 0.9* money;
  36. Console.WriteLine("Somewhere in Europe");
  37. Console.WriteLine("Hotel" + "-" + "{0:f2}", budget);
  38. }
  39. else if ( season == "winter" && money <= 100)
  40. {
  41.  
  42. double budget = 0.7* money;
  43. Console.WriteLine("Somewhere in Bulgaria");
  44. Console.WriteLine("Hotel" + "-" + "{0:f2}", budget);
  45. }
  46. else if ( season == "winter" && money <= 1000 && money > 100)
  47. {
  48.  
  49. double budget = 0.8* money;
  50. Console.WriteLine("Somewhere in Balkans");
  51. Console.WriteLine("Hotel" + "-" + "{0:f2}", budget);
  52. }
  53.  
  54.  
  55. }
  56. }
Advertisement
Add Comment
Please, Sign In to add comment