Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Journey
- {
- class Program
- {
- static void Main(string[] args)
- {
- double budget = double.Parse(Console.ReadLine());
- string season = Console.ReadLine();
- string destination = string.Empty;
- string typeOfTrip = string.Empty;
- double priceForTrip = 0;
- if (budget <= 100)
- {
- destination = "Bulgaria";
- if (season.Equals("summer"))
- {
- priceForTrip = budget * 0.3;
- typeOfTrip = "Camp";
- }
- else
- {
- priceForTrip = budget * 0.7;
- typeOfTrip = "Hotel";
- }
- }
- else if (budget <= 1000)
- {
- destination = "Balkans";
- if (season.Equals("summer"))
- {
- priceForTrip = budget * 0.4;
- typeOfTrip = "Camp";
- }
- else
- {
- priceForTrip = budget * 0.8;
- typeOfTrip = "Hotel";
- }
- }
- else
- {
- destination = "Europe";
- priceForTrip = budget * 0.9;
- typeOfTrip = "Hotel";
- }
- Console.WriteLine($"Somewhere in {destination}");
- Console.WriteLine($"{typeOfTrip} - {priceForTrip:F2}");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement