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 i_am_a_joke
- {
- class Program
- {
- static void Main(string[] args)
- {
- double budget = double.Parse(Console.ReadLine());
- string season = Console.ReadLine();
- string place;
- double price = 0.0;
- string location;
- if (budget <= 1000)
- {
- if(season == "Summer")
- {
- location = "Camp";
- place = "Alaska";
- price = budget * 0.65;
- Console.WriteLine($"{place} - {location} - {price:f2}");
- }
- else if (season == "Winter")
- {
- location = "Camp";
- place = "Morocco";
- price = budget * 0.45;
- Console.WriteLine($"{place} - {location} - {price:f2}");
- }
- }
- else if (budget > 1000 && budget <= 3000)
- {
- if (season == "Summer")
- {
- location = "Hut";
- place = "Alaska";
- price = budget * 0.8;
- Console.WriteLine($"{place} - {location} - {price:f2}");
- }
- else if (season == "Winter")
- {
- location = "Hut";
- place = "Morocco";
- price = budget * 0.6;
- Console.WriteLine($"{place} - {location} - {price:f2}");
- }
- }
- else if (budget > 3000)
- {
- if(season == "Summer")
- {
- location = "Hotel";
- place = "Alaska";
- price = budget * 0.9;
- Console.WriteLine($"{place} - {location} - {price:f2}");
- }
- else if (season == "Winter")
- {
- location = "Hotel";
- place = "Morocco";
- price = budget * 0.9;
- Console.WriteLine($"{place} - {location} - {price:f2}");
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement