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