Guest User

Untitled

a guest
Jan 20th, 2018
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 13.42 KB | None | 0 0
  1. using System;
  2.  
  3. namespace Ivanovi_s_Holiday
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             int nights = int.Parse(Console.ReadLine());
  10.             string destination = Console.ReadLine();
  11.             string transport = Console.ReadLine();
  12.             if (destination == "Miami")
  13.             {
  14.                 if (nights <= 10)
  15.                 {
  16.                     double vuzrasten = 24.99;
  17.                     double dete = 14.99;
  18.                     double total = (nights * (2 * vuzrasten + 3 * dete));
  19.                     if (transport == "airplane")
  20.                     {
  21.                         double vuzrasten1 = 90.00;
  22.                         double dete1 = 68.50;
  23.                         double transport1 = (2 * vuzrasten1) + (3 * dete1);
  24.                         double all = total + (total * 0.25) + transport1;
  25.                         Console.WriteLine(Math.Round(all, 3));
  26.                     }
  27.                     if (transport == "bus")
  28.                     {
  29.                         double vuzrasten1 = 45.00;
  30.                         double dete1 = 37.00;
  31.                         double transport1 = (2 * vuzrasten1) + (3 * dete1);
  32.                         double all = total + (total * 0.25) + transport1;
  33.                         Console.WriteLine(Math.Round(all, 3));
  34.                     }
  35.                     if (transport == "train")
  36.                     {
  37.                         double vuzrasten1 = 22.30;
  38.                         double dete1 = 12.50;
  39.                         double transport1 = (2 * vuzrasten1) + (3 * dete1);
  40.                         double all = total + (total * 0.25) + transport1;
  41.                         Console.WriteLine(Math.Round(all, 3));
  42.                     }
  43.                 }
  44.                 if (nights >= 11 && nights <= 15)
  45.                 {
  46.                     double vuzrasten = 22.99;
  47.                     double dete = 11.99;
  48.                     double total = (nights * (2 * vuzrasten + 3 * dete));
  49.                     if (transport == "airplane")
  50.                     {
  51.                         double vuzrasten1 = 90.00;
  52.                         double dete1 = 68.50;
  53.                         double transport1 = (2 * vuzrasten1) + (3 * dete1);
  54.                         double all = total + (total * 0.25) + transport1;
  55.                         Console.WriteLine(Math.Round(all, 3));
  56.                     }
  57.                     if (transport == "bus")
  58.                     {
  59.                         double vuzrasten1 = 45.00;
  60.                         double dete1 = 37.00;
  61.                         double transport1 = (2 * vuzrasten1) + (3 * dete1);
  62.                         double all = total + (total * 0.25) + transport1;
  63.                         Console.WriteLine(Math.Round(all, 3));
  64.                     }
  65.                     if (transport == "train")
  66.                     {
  67.                         double vuzrasten1 = 22.30;
  68.                         double dete1 = 12.50;
  69.                         double transport1 = (2 * vuzrasten1) + (3 * dete1);
  70.                         double all = total + (total * 0.25) + transport1;
  71.                         Console.WriteLine(Math.Round(all, 3));
  72.                     }
  73.                 }
  74.                 if (nights > 15)
  75.                 {
  76.                     double vuzrasten = 20.00;
  77.                     double dete = 10.00;
  78.                     double total = (nights * (2 * vuzrasten + 3 * dete));
  79.                     if (transport == "airplane")
  80.                     {
  81.                         double vuzrasten1 = 90.00;
  82.                         double dete1 = 68.50;
  83.                         double transport1 = (2 * vuzrasten1) + (3 * dete1);
  84.                         double all = total + (total * 0.25) + transport1;
  85.                         Console.WriteLine(Math.Round(all, 3));
  86.                     }
  87.                     if (transport == "bus")
  88.                     {
  89.                         double vuzrasten1 = 45.00;
  90.                         double dete1 = 37.00;
  91.                         double transport1 = (2 * vuzrasten1) + (3 * dete1);
  92.                         double all = total + (total * 0.25) + transport1;
  93.                         Console.WriteLine(Math.Round(all, 3));
  94.                     }
  95.                     if (transport == "train")
  96.                     {
  97.                         double vuzrasten1 = 22.30;
  98.                         double dete1 = 12.50;
  99.                         double transport1 = (2 * vuzrasten1) + (3 * dete1);
  100.                         double all = total + (total * 0.25) + transport1;
  101.                         Console.WriteLine(Math.Round(all, 3));
  102.                     }
  103.                 }
  104.             }
  105.             if (destination == "Canary Islands")
  106.             {
  107.                 if (nights <= 10)
  108.                 {
  109.                     double vuzrasten = 32.50;
  110.                     double dete = 28.50;
  111.                     double total = (nights * (2 * vuzrasten + 3 * dete));
  112.                     if (transport == "airplane")
  113.                     {
  114.                         double vuzrasten1 = 90.00;
  115.                         double dete1 = 68.50;
  116.                         double transport1 = (2 * vuzrasten1) + (3 * dete1);
  117.                         double all = total + (total * 0.25) + transport1;
  118.                         Console.WriteLine(Math.Round(all, 3));
  119.                     }
  120.                     if (transport == "bus")
  121.                     {
  122.                         double vuzrasten1 = 45.00;
  123.                         double dete1 = 37.00;
  124.                         double transport1 = (2 * vuzrasten1) + (3 * dete1);
  125.                         double all = total + (total * 0.25) + transport1;
  126.                         Console.WriteLine(Math.Round(all, 3));
  127.                     }
  128.                     if (transport == "train")
  129.                     {
  130.                         double vuzrasten1 = 22.30;
  131.                         double dete1 = 12.50;
  132.                         double transport1 = (2 * vuzrasten1) + (3 * dete1);
  133.                         double all = total + (total * 0.25) + transport1;
  134.                         Console.WriteLine(Math.Round(all, 3));
  135.                     }
  136.                 }
  137.                 if (nights >= 11 && nights <= 15)
  138.                 {
  139.                     double vuzrasten = 30.50;
  140.                     double dete = 25.60;
  141.                     double total = (nights * (2 * vuzrasten + 3 * dete));
  142.                     if (transport == "airplane")
  143.                     {
  144.                         double vuzrasten1 = 90.00;
  145.                         double dete1 = 68.50;
  146.                         double transport1 = (2 * vuzrasten1) + (3 * dete1);
  147.                         double all = total + (total * 0.25) + transport1;
  148.                         Console.WriteLine(Math.Round(all, 3));
  149.                     }
  150.                     if (transport == "bus")
  151.                     {
  152.                         double vuzrasten1 = 45.00;
  153.                         double dete1 = 37.00;
  154.                         double transport1 = (2 * vuzrasten1) + (3 * dete1);
  155.                         double all = total + (total * 0.25) + transport1;
  156.                         Console.WriteLine(Math.Round(all, 3));
  157.                     }
  158.                     if (transport == "train")
  159.                     {
  160.                         double vuzrasten1 = 22.30;
  161.                         double dete1 = 12.50;
  162.                         double transport1 = (2 * vuzrasten1) + (3 * dete1);
  163.                         double all = total + (total * 0.25) + transport1;
  164.                         Console.WriteLine(Math.Round(all, 3));
  165.                     }
  166.                 }
  167.                 if (nights > 15)
  168.                 {
  169.                     double vuzrasten = 28.00;
  170.                     double dete = 22.00;
  171.                     double total = (nights * (2 * vuzrasten + 3 * dete));
  172.                     if (transport == "airplane")
  173.                     {
  174.                         double vuzrasten1 = 90.00;
  175.                         double dete1 = 68.50;
  176.                         double transport1 = (2 * vuzrasten1) + (3 * dete1);
  177.                         double all = total + (total * 0.25) + transport1;
  178.                         Console.WriteLine(Math.Round(all, 3));
  179.                     }
  180.                     if (transport == "bus")
  181.                     {
  182.                         double vuzrasten1 = 45.00;
  183.                         double dete1 = 37.00;
  184.                         double transport1 = (2 * vuzrasten1) + (3 * dete1);
  185.                         double all = total + (total * 0.25) + transport1;
  186.                         Console.WriteLine(Math.Round(all, 3));
  187.                     }
  188.                     if (transport == "train")
  189.                     {
  190.                         double vuzrasten1 = 22.30;
  191.                         double dete1 = 12.50;
  192.                         double transport1 = (2 * vuzrasten1) + (3 * dete1);
  193.                         double all = total + (total * 0.25) + transport1;
  194.                         Console.WriteLine(Math.Round(all, 3));
  195.                     }
  196.                 }
  197.             }
  198.             if (destination == "Philippines")
  199.             {
  200.                 if (nights <= 10)
  201.                 {
  202.                     double vuzrasten = 42.99;
  203.                     double dete = 39.99;
  204.                     double total = (nights * (2 * vuzrasten + 3 * dete));
  205.                     if (transport == "airplane")
  206.                     {
  207.                         double vuzrasten1 = 90.00;
  208.                         double dete1 = 68.50;
  209.                         double transport1 = (2 * vuzrasten1) + (3 * dete1);
  210.                         double all = total + (total * 0.25) + transport1;
  211.                         Console.WriteLine(Math.Round(all, 3));
  212.                     }
  213.                     if (transport == "bus")
  214.                     {
  215.                         double vuzrasten1 = 45.00;
  216.                         double dete1 = 37.00;
  217.                         double transport1 = (2 * vuzrasten1) + (3 * dete1);
  218.                         double all = total + (total * 0.25) + transport1;
  219.                         Console.WriteLine(Math.Round(all, 3));
  220.                     }
  221.                     if (transport == "train")
  222.                     {
  223.                         double vuzrasten1 = 22.30;
  224.                         double dete1 = 12.50;
  225.                         double transport1 = (2 * vuzrasten1) + (3 * dete1);
  226.                         double all = total + (total * 0.25) + transport1;
  227.                         Console.WriteLine(Math.Round(all, 3));
  228.                     }
  229.                 }
  230.                 if (nights >= 11 && nights <= 15)
  231.                 {
  232.                     double vuzrasten = 41.00;
  233.                     double dete = 36.00;
  234.                     double total = (nights * (2 * vuzrasten + 3 * dete));
  235.                     if (transport == "airplane")
  236.                     {
  237.                         double vuzrasten1 = 90.00;
  238.                         double dete1 = 68.50;
  239.                         double transport1 = (2 * vuzrasten1) + (3 * dete1);
  240.                         double all = total + (total * 0.25) + transport1;
  241.                         Console.WriteLine(Math.Round(all, 3));
  242.                     }
  243.                     if (transport == "bus")
  244.                     {
  245.                         double vuzrasten1 = 45.00;
  246.                         double dete1 = 37.00;
  247.                         double transport1 = (2 * vuzrasten1) + (3 * dete1);
  248.                         double all = total + (total * 0.25) + transport1;
  249.                         Console.WriteLine(Math.Round(all, 3));
  250.                     }
  251.                     if (transport == "train")
  252.                     {
  253.                         double vuzrasten1 = 22.30;
  254.                         double dete1 = 12.50;
  255.                         double transport1 = (2 * vuzrasten1) + (3 * dete1);
  256.                         double all = total + (total * 0.25) + transport1;
  257.                         Console.WriteLine(Math.Round(all, 3));
  258.                     }
  259.                 }
  260.                 if (nights > 15)
  261.                 {
  262.                     double vuzrasten = 38.50;
  263.                     double dete = 32.40;
  264.                     double total = (nights * (2 * vuzrasten + 3 * dete));
  265.                     if (transport == "airplane")
  266.                     {
  267.                         double vuzrasten1 = 90.00;
  268.                         double dete1 = 68.50;
  269.                         double transport1 = (2 * vuzrasten1) + (3 * dete1);
  270.                         double all = total + (total * 0.25) + transport1;
  271.                         Console.WriteLine(Math.Round(all, 3));
  272.                     }
  273.                     if (transport == "bus")
  274.                     {
  275.                         double vuzrasten1 = 45.00;
  276.                         double dete1 = 37.00;
  277.                         double transport1 = (2 * vuzrasten1) + (3 * dete1);
  278.                         double all = total + (total * 0.25) + transport1;
  279.                         Console.WriteLine(Math.Round(all, 3));
  280.                     }
  281.                     if (transport == "train")
  282.                     {
  283.                         double vuzrasten1 = 22.30;
  284.                         double dete1 = 12.50;
  285.                         double transport1 = (2 * vuzrasten1) + (3 * dete1);
  286.                         double all = total + (total * 0.25) + transport1;
  287.                         Console.WriteLine(Math.Round(all, 3));
  288.                     }
  289.                 }
  290.             }
  291.         }
  292.     }
  293. }
Add Comment
Please, Sign In to add comment