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 Trip
- {
- class Program
- {
- static void Main(string[] args)
- {
- double budget = double.Parse(Console.ReadLine());
- var season = Console.ReadLine();
- var destination = "";
- destination = destination;
- double cost = 0.0;
- var CampOrHotel = "";
- if (budget<=100)
- {
- destination = "Bulgaria";
- if (season == "summer")
- {
- cost = budget * 30 / 100;
- CampOrHotel = "Camp";
- }
- else if (season == "winter")
- {
- cost = budget * 70 / 100;
- CampOrHotel = "Hotel";
- }
- }
- else if(budget>100 && budget <= 1000)
- {
- destination = "Balkans";
- if (season == "summer")
- {
- cost = budget * 40 / 100;
- CampOrHotel = "Camp";
- }
- else if (season == "winter")
- {
- cost = budget * 80 / 100;
- CampOrHotel = "Hotel";
- }
- }
- else if (budget > 1000)
- {
- destination = "Europe";
- cost = budget * 90 / 100;
- CampOrHotel = "Hotel";
- }
- Console.WriteLine("Somewhere in "+ destination);
- Console.WriteLine("{0} - {1:f2}",CampOrHotel, cost);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement