Beispiel #1
0
 public static void PrintPart3(Part1 part1, Part3 part3)
 {
     for (var i = 0; i < part1.k; ++i)
     {
         PrintRowTrans(part3, i);
     }
     Console.WriteLine("X2набл: {0}", part3.X2набл);
     Console.WriteLine();
 }
Beispiel #2
0
 private static void PrintRowTrans(Part3 part3, int index)
 {
     Console.Write("{0,3}", part3.Xi[index]);
     Console.Write("{0,3}", part3.Xi1[index]);
     Console.Write("{0,3}", part3.ni[index]);
     Console.Write("{0,7}", part3.zi[index]);
     Console.Write("{0,7}", part3.zi1[index]);
     Console.Write("{0,7}", part3.E_zi[index]);
     Console.Write("{0,7}", part3.E_zi1[index]);
     Console.Write("{0,7}", part3.pi[index]);
     Console.Write("{0,7}", part3.npi[index]);
     Console.Write("{0,7}", part3.Component[index]);
     Console.WriteLine();
 }
Beispiel #3
0
        private static void Solution(double[] data)
        {
            if (data.Length != 100)
            {
                Console.WriteLine("The sample must be a hundred items");
                return;
            }
            var table = new Part1(data);

            PrintResult.PrintPart1(table);

            var part2 = new Part2(table);

            PrintResult.PrintPart2(part2);

            var part3 = new Part3(table, part2);

            PrintResult.PrintPart3(table, part3);
        }