Untitled

mail@pastecode.io avatarunknown
plain_text
8 days ago
1.4 kB
7
Indexable
Never
namespace Journey
{
    internal class Program
    {
        static void Main(string[] args)
        {
            double budget = double.Parse(Console.ReadLine());
            String season = Console.ReadLine();

            String destination = "";
            double cost;
            String holidayType = "";
            
            if (budget <= 100)
            {
                destination = "Bulgaria";
                if (season == "Summer")
                {
                    cost = budget * 0.3;
                    holidayType = "Camp";
                }
                else 
                
                    cost = budget * 0.7;
                    holidayType = "Hotel";
                
            }
            else if (budget <= 1000)
            {
                destination = "Balkans";
                if (season == "Summer")
                {
                    cost = budget * 0.4;
                    holidayType = "Camp";
                }
                else
                    cost = budget * 0.8;
                    holidayType = "Hotel";

            }
            else 
            {
                destination = "Europe";
                cost = budget * 0.9;
                holidayType = "Hotel";

            }
            Console.WriteLine($"Somewhere in {destination}");
            Console.WriteLine($"{holidayType} - {cost:f2}");

        }
    }
}