private static void OutputEachFieldOfMotorcycle(IMotorcycleDataStructure motorcycle)
 {
     Console.Write(motorcycle.GetBrandOfMotorcycle() + " ");
     Console.Write(motorcycle.GetModelOfMotorcycle() + " ");
     Console.Write(motorcycle.GetCapacityOfMotorcycle() + " ");
     Console.Write(motorcycle.GetTypeOfMotorcycle() + " ");
     Console.Write(motorcycle.GetMaxSpeedInStraightLineOfMotorcycle() + " ");
     Console.WriteLine(motorcycle.GetMaxSpeedInCurveOfMotorcycle());
 }
Example #2
0
        private double GetAverageSpeedOfMotorcycle(IMotorcycleDataStructure motorcycle)
        {
            int numberOfStraightLineParts = _inputOutputSystem.GetNumberOfStraightLinesInCircuit(_pathToCircuitFile);
            int numberOfCurveLineParts    = _inputOutputSystem.GetNumberOfCurvesInCircuit(_pathToCircuitFile);

            double result = numberOfStraightLineParts * motorcycle.GetMaxSpeedInStraightLineOfMotorcycle() +
                            numberOfCurveLineParts * motorcycle.GetMaxSpeedInCurveOfMotorcycle();

            return(result);
        }