Aliendreamer

holiday issue17 ComplexLogicExaminations

Feb 9th, 2017
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.96 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 issue15Vacation
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             double Budget = double.Parse(Console.ReadLine());
  14.             string Season = Console.ReadLine().ToLower();
  15.  
  16.             string[] Destination = {" Bulgaria"," Balkans"," Europe" };
  17.             string[] Season1 = { "summer", "winter" };
  18.  
  19.             switch(Season)
  20.             {
  21.                 case "summer":
  22.                             if(Budget<=100)
  23.                                 {
  24.                         Console.WriteLine("Somewhere in Bulgaria\n"+"Camp - {0:f2}",(Budget*0.30));
  25.                                 }
  26.  
  27.                             else if(100<Budget&& Budget<=1000)
  28.                                 {
  29.                         Console.WriteLine("Somewhere in Balkans\n" + "Camp - {0:f2}",(Budget * 0.40));
  30.                                 }
  31.                             else if(1000<Budget)
  32.                             {
  33.                         Console.WriteLine("Somewhere in Europe\n" + "Hotel - {0:f2}",(Budget * 0.90));
  34.                             }
  35.                     break;
  36.  
  37.                  case "winter":
  38.                     if (Budget <= 100)
  39.                     {
  40.                         Console.WriteLine("Somewhere in Bulgaria\n" + "Hotel - {0:f2}",(Budget * 0.70));
  41.                     }
  42.  
  43.                     else if (100 < Budget && Budget <= 1000)
  44.                     {
  45.                         Console.WriteLine("Somewhere in Balkans\n" + "Hotel - {0:f2}",(Budget * 0.80));
  46.                     }
  47.                     else if (1000 < Budget)
  48.                     {
  49.                         Console.WriteLine("Somewhere in Europe\n" + "Hotel - {0:f2}",(Budget * 0.90));
  50.                     }
  51.                     break;
  52.  
  53.  
  54.  
  55.  
  56.             }
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.            
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.         }
  72.     }
  73. }
Advertisement
Add Comment
Please, Sign In to add comment