Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Ivanovi_s_Holiday
- {
- class Program
- {
- static void Main(string[] args)
- {
- int nights = int.Parse(Console.ReadLine());
- string destination = Console.ReadLine();
- string transport = Console.ReadLine();
- if (destination == "Miami")
- {
- if (nights <= 10)
- {
- double vuzrasten = 24.99;
- double dete = 14.99;
- double total = (nights * (2 * vuzrasten + 3 * dete));
- if (transport == "airplane")
- {
- double vuzrasten1 = 90.00;
- double dete1 = 68.50;
- double transport1 = (2 * vuzrasten1) + (3 * dete1);
- double all = total + (total * 0.25) + transport1;
- Console.WriteLine(Math.Round(all, 3));
- }
- if (transport == "bus")
- {
- double vuzrasten1 = 45.00;
- double dete1 = 37.00;
- double transport1 = (2 * vuzrasten1) + (3 * dete1);
- double all = total + (total * 0.25) + transport1;
- Console.WriteLine(Math.Round(all, 3));
- }
- if (transport == "train")
- {
- double vuzrasten1 = 22.30;
- double dete1 = 12.50;
- double transport1 = (2 * vuzrasten1) + (3 * dete1);
- double all = total + (total * 0.25) + transport1;
- Console.WriteLine(Math.Round(all, 3));
- }
- }
- if (nights >= 11 && nights <= 15)
- {
- double vuzrasten = 22.99;
- double dete = 11.99;
- double total = (nights * (2 * vuzrasten + 3 * dete));
- if (transport == "airplane")
- {
- double vuzrasten1 = 90.00;
- double dete1 = 68.50;
- double transport1 = (2 * vuzrasten1) + (3 * dete1);
- double all = total + (total * 0.25) + transport1;
- Console.WriteLine(Math.Round(all, 3));
- }
- if (transport == "bus")
- {
- double vuzrasten1 = 45.00;
- double dete1 = 37.00;
- double transport1 = (2 * vuzrasten1) + (3 * dete1);
- double all = total + (total * 0.25) + transport1;
- Console.WriteLine(Math.Round(all, 3));
- }
- if (transport == "train")
- {
- double vuzrasten1 = 22.30;
- double dete1 = 12.50;
- double transport1 = (2 * vuzrasten1) + (3 * dete1);
- double all = total + (total * 0.25) + transport1;
- Console.WriteLine(Math.Round(all, 3));
- }
- }
- if (nights > 15)
- {
- double vuzrasten = 20.00;
- double dete = 10.00;
- double total = (nights * (2 * vuzrasten + 3 * dete));
- if (transport == "airplane")
- {
- double vuzrasten1 = 90.00;
- double dete1 = 68.50;
- double transport1 = (2 * vuzrasten1) + (3 * dete1);
- double all = total + (total * 0.25) + transport1;
- Console.WriteLine(Math.Round(all, 3));
- }
- if (transport == "bus")
- {
- double vuzrasten1 = 45.00;
- double dete1 = 37.00;
- double transport1 = (2 * vuzrasten1) + (3 * dete1);
- double all = total + (total * 0.25) + transport1;
- Console.WriteLine(Math.Round(all, 3));
- }
- if (transport == "train")
- {
- double vuzrasten1 = 22.30;
- double dete1 = 12.50;
- double transport1 = (2 * vuzrasten1) + (3 * dete1);
- double all = total + (total * 0.25) + transport1;
- Console.WriteLine(Math.Round(all, 3));
- }
- }
- }
- if (destination == "Canary Islands")
- {
- if (nights <= 10)
- {
- double vuzrasten = 32.50;
- double dete = 28.50;
- double total = (nights * (2 * vuzrasten + 3 * dete));
- if (transport == "airplane")
- {
- double vuzrasten1 = 90.00;
- double dete1 = 68.50;
- double transport1 = (2 * vuzrasten1) + (3 * dete1);
- double all = total + (total * 0.25) + transport1;
- Console.WriteLine(Math.Round(all, 3));
- }
- if (transport == "bus")
- {
- double vuzrasten1 = 45.00;
- double dete1 = 37.00;
- double transport1 = (2 * vuzrasten1) + (3 * dete1);
- double all = total + (total * 0.25) + transport1;
- Console.WriteLine(Math.Round(all, 3));
- }
- if (transport == "train")
- {
- double vuzrasten1 = 22.30;
- double dete1 = 12.50;
- double transport1 = (2 * vuzrasten1) + (3 * dete1);
- double all = total + (total * 0.25) + transport1;
- Console.WriteLine(Math.Round(all, 3));
- }
- }
- if (nights >= 11 && nights <= 15)
- {
- double vuzrasten = 30.50;
- double dete = 25.60;
- double total = (nights * (2 * vuzrasten + 3 * dete));
- if (transport == "airplane")
- {
- double vuzrasten1 = 90.00;
- double dete1 = 68.50;
- double transport1 = (2 * vuzrasten1) + (3 * dete1);
- double all = total + (total * 0.25) + transport1;
- Console.WriteLine(Math.Round(all, 3));
- }
- if (transport == "bus")
- {
- double vuzrasten1 = 45.00;
- double dete1 = 37.00;
- double transport1 = (2 * vuzrasten1) + (3 * dete1);
- double all = total + (total * 0.25) + transport1;
- Console.WriteLine(Math.Round(all, 3));
- }
- if (transport == "train")
- {
- double vuzrasten1 = 22.30;
- double dete1 = 12.50;
- double transport1 = (2 * vuzrasten1) + (3 * dete1);
- double all = total + (total * 0.25) + transport1;
- Console.WriteLine(Math.Round(all, 3));
- }
- }
- if (nights > 15)
- {
- double vuzrasten = 28.00;
- double dete = 22.00;
- double total = (nights * (2 * vuzrasten + 3 * dete));
- if (transport == "airplane")
- {
- double vuzrasten1 = 90.00;
- double dete1 = 68.50;
- double transport1 = (2 * vuzrasten1) + (3 * dete1);
- double all = total + (total * 0.25) + transport1;
- Console.WriteLine(Math.Round(all, 3));
- }
- if (transport == "bus")
- {
- double vuzrasten1 = 45.00;
- double dete1 = 37.00;
- double transport1 = (2 * vuzrasten1) + (3 * dete1);
- double all = total + (total * 0.25) + transport1;
- Console.WriteLine(Math.Round(all, 3));
- }
- if (transport == "train")
- {
- double vuzrasten1 = 22.30;
- double dete1 = 12.50;
- double transport1 = (2 * vuzrasten1) + (3 * dete1);
- double all = total + (total * 0.25) + transport1;
- Console.WriteLine(Math.Round(all, 3));
- }
- }
- }
- if (destination == "Philippines")
- {
- if (nights <= 10)
- {
- double vuzrasten = 42.99;
- double dete = 39.99;
- double total = (nights * (2 * vuzrasten + 3 * dete));
- if (transport == "airplane")
- {
- double vuzrasten1 = 90.00;
- double dete1 = 68.50;
- double transport1 = (2 * vuzrasten1) + (3 * dete1);
- double all = total + (total * 0.25) + transport1;
- Console.WriteLine(Math.Round(all, 3));
- }
- if (transport == "bus")
- {
- double vuzrasten1 = 45.00;
- double dete1 = 37.00;
- double transport1 = (2 * vuzrasten1) + (3 * dete1);
- double all = total + (total * 0.25) + transport1;
- Console.WriteLine(Math.Round(all, 3));
- }
- if (transport == "train")
- {
- double vuzrasten1 = 22.30;
- double dete1 = 12.50;
- double transport1 = (2 * vuzrasten1) + (3 * dete1);
- double all = total + (total * 0.25) + transport1;
- Console.WriteLine(Math.Round(all, 3));
- }
- }
- if (nights >= 11 && nights <= 15)
- {
- double vuzrasten = 41.00;
- double dete = 36.00;
- double total = (nights * (2 * vuzrasten + 3 * dete));
- if (transport == "airplane")
- {
- double vuzrasten1 = 90.00;
- double dete1 = 68.50;
- double transport1 = (2 * vuzrasten1) + (3 * dete1);
- double all = total + (total * 0.25) + transport1;
- Console.WriteLine(Math.Round(all, 3));
- }
- if (transport == "bus")
- {
- double vuzrasten1 = 45.00;
- double dete1 = 37.00;
- double transport1 = (2 * vuzrasten1) + (3 * dete1);
- double all = total + (total * 0.25) + transport1;
- Console.WriteLine(Math.Round(all, 3));
- }
- if (transport == "train")
- {
- double vuzrasten1 = 22.30;
- double dete1 = 12.50;
- double transport1 = (2 * vuzrasten1) + (3 * dete1);
- double all = total + (total * 0.25) + transport1;
- Console.WriteLine(Math.Round(all, 3));
- }
- }
- if (nights > 15)
- {
- double vuzrasten = 38.50;
- double dete = 32.40;
- double total = (nights * (2 * vuzrasten + 3 * dete));
- if (transport == "airplane")
- {
- double vuzrasten1 = 90.00;
- double dete1 = 68.50;
- double transport1 = (2 * vuzrasten1) + (3 * dete1);
- double all = total + (total * 0.25) + transport1;
- Console.WriteLine(Math.Round(all, 3));
- }
- if (transport == "bus")
- {
- double vuzrasten1 = 45.00;
- double dete1 = 37.00;
- double transport1 = (2 * vuzrasten1) + (3 * dete1);
- double all = total + (total * 0.25) + transport1;
- Console.WriteLine(Math.Round(all, 3));
- }
- if (transport == "train")
- {
- double vuzrasten1 = 22.30;
- double dete1 = 12.50;
- double transport1 = (2 * vuzrasten1) + (3 * dete1);
- double all = total + (total * 0.25) + transport1;
- Console.WriteLine(Math.Round(all, 3));
- }
- }
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment