Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace Travel
- {
- class Program
- {
- static void Main(string[] args)
- {
- double Budget = double.Parse(Console.ReadLine());
- string Season = Console.ReadLine();
- string Bulgaria = "Bulgaria";
- string Balkans = "Balkans";
- string Europe = "Europe";
- string Destinaciq = "";
- string place = "";
- double ProcentOfBudget = 0.00;
- if (Budget <= 100.00)
- {
- Destinaciq = Bulgaria;
- if (Season == "summer")
- {
- place = "Camp";
- ProcentOfBudget = Budget * 0.3;
- }
- else if (Season == "winter")
- {
- place = "Hotel";
- ProcentOfBudget = Budget * 0.7;
- }
- }
- else if (Budget <= 1000.00 && Budget > 100.00)
- {
- Destinaciq = Balkans;
- if (Season == "summer")
- {
- place = "Camp";
- ProcentOfBudget = Budget * 0.4;
- }
- else if (Season == "winter")
- {
- place = "Hotel";
- ProcentOfBudget = Budget * 0.8;
- }
- }
- else if (Budget > 1000.00)
- {
- Destinaciq = Europe;
- place = "Hotel";
- ProcentOfBudget = Budget * 0.9;
- }
- Console.WriteLine("Somewhere in {0}", Destinaciq);
- Console.WriteLine("{0}" + " - " + "{1:F2}", place, ProcentOfBudget);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement