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