Exemplo n.º 1
0
 public void MakeADeal()
 {
     Console.WriteLine("Name - " + _bicycle.Name);
     Console.WriteLine("Price - " + Math.Round(_rent.CountThePrice(_bicycle), 2) + @"€");
     Console.WriteLine("Discount - " + Math.Round(_rent.Discount(_bicycle), 2) + @"€");
     Console.WriteLine("Real price - " + Math.Round(_rent.CountThePrice(_bicycle) - _rent.Discount(_bicycle), 2) + @"€");
     Console.WriteLine("AdditionalService - " + _rent.AdditionalServices(_bicycle).ToString());
     Console.WriteLine();
 }
Exemplo n.º 2
0
        public void MakeADeal()
        {
            Console.WriteLine("Name - " + _car.Name);
            Console.WriteLine("Price - " + Math.Round(_rent.CountThePrice(_car), 2) + @"€");
            Console.WriteLine("Discount - " + Math.Round(_rent.Discount(_car), 2) + @"€");
            Console.WriteLine("Real price - " + Math.Round(_rent.CountThePrice(_car) - _rent.Discount(_car), 2) + @"€");
            Console.WriteLine("AdditionalService - " + _rent.AdditionalServices(_car).ToString());
            Console.WriteLine("How much polution is made to nature - " + _mode.PollutionAmount(_car, Distance));

            Console.WriteLine();
        }