Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace morexercies
- {
- class Program
- {
- static void Main(string[] args)
- {
- double budget = double.Parse(Console.ReadLine());
- string season = Console.ReadLine();
- string place = "";
- var price = 0.0;
- var location = "";
- if (budget <= 1000)
- {
- place = "Camp";
- if (season == "Summer")
- {
- location = "Alaska";
- price = budget * 0.65;
- }
- else
- {
- location = "Morocco";
- price = budget * 0.45;
- }
- }
- else if (budget > 1000 && budget <= 3000)
- {
- place = "Hut";
- if (season == "Summer")
- {
- location = "Alaska";
- price = budget * 0.80;
- }
- else
- {
- location = "Morocco";
- price = budget * 0.60;
- }
- }
- else
- {
- place = "Hotel";
- if (season == "Summer")
- {
- location = "Alaska";
- price = budget * 0.90;
- }
- else
- {
- location = "Morocco";
- price = budget * 0.90;
- }
- }
- Console.WriteLine($"{location} - {place} - {price:f2}");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement