public static void Main(string[] args) { WorkWithConsoleClass workWithConsoleClass = new WorkWithConsoleClass(); WorkWithRegularExpressionsClass workWithRegularExpressionsClass = new WorkWithRegularExpressionsClass(); workWithConsoleClass.Output(workWithRegularExpressionsClass.ReplaceHtmlTags(workWithConsoleClass.Input())); }
public static void Main(string[] args) { WorkWithConsoleClass workWithConsoleClass = new WorkWithConsoleClass(); WorkWithRegularExpressionsClass workWithRegularExpressionsClass = new WorkWithRegularExpressionsClass(); workWithConsoleClass.Output(workWithRegularExpressionsClass.IsDateContains(workWithConsoleClass.Input())); }
public static void Main(string[] args) { WorkWithConsoleClass workWithConsoleClass = new WorkWithConsoleClass(); IsNumberSimpleFunctionClass isNumberSimpleFunctionClass = new IsNumberSimpleFunctionClass(); workWithConsoleClass.Output(isNumberSimpleFunctionClass.IsNumberSimpleCheck(workWithConsoleClass.Input())); }
public static void Main(string[] args) { WorkWithConsoleClass workWithConsoleClass = new WorkWithConsoleClass(); WorkWithStringClass workWithStringClass = new WorkWithStringClass(); workWithConsoleClass.Output(workWithStringClass.CheckingOfBrackets(workWithConsoleClass.Input())); }
public static void Main(string[] args) { WorkWithConsoleClass workWithConsoleClass = new WorkWithConsoleClass(); WorkWithStringClass workWithStringClass = new WorkWithStringClass(); workWithConsoleClass.Output(workWithStringClass.IsPositiveInt(workWithConsoleClass.Input())); }
public static void Main(string[] args) { WorkWithConsoleClass workWithConsoleClass = new WorkWithConsoleClass(); SquareCreatingClass squareCreatingClass = new SquareCreatingClass(); workWithConsoleClass.Output(squareCreatingClass.SquareCreating(workWithConsoleClass.Input())); }
public static void Main(string[] args) { WorkWithConsoleClass workWithConsoleClass = new WorkWithConsoleClass(); WorkWithStringClass workWithStringClass = new WorkWithStringClass(); workWithConsoleClass.Output(workWithStringClass.SelectUniqueWords(workWithConsoleClass.Input())); }
public static void Main(string[] args) { WorkWithConsoleClass workWithConsoleClass = new WorkWithConsoleClass(); FactorialFunctionClass factorialFunctionClass = new FactorialFunctionClass(); workWithConsoleClass.Output(factorialFunctionClass.FactorialCalculate(workWithConsoleClass.Input())); }
public static void Main(string[] args) { WorkWithConsoleClass workWithConsoleClass = new WorkWithConsoleClass(); WorkWithStringClass workWithStringClass = new WorkWithStringClass(); workWithConsoleClass.Output(workWithStringClass.CalculateAverageLength(workWithConsoleClass.Input())); }
public static void Main(string[] args) { WorkWithConsoleClass workWithConsoleClass = new WorkWithConsoleClass(); SumFunctionClass sumFunctionClass = new SumFunctionClass(); workWithConsoleClass.Output(sumFunctionClass.Sum(1000)); }
public static void Main(string[] args) { WorkWithConsoleClass workWithConsoleClass = new WorkWithConsoleClass(); CreateXmasTreeClass createXmasTreeClass = new CreateXmasTreeClass(); workWithConsoleClass.Output(createXmasTreeClass.XmasTreeCreating(workWithConsoleClass.Input())); }
public static void Main(string[] args) { WorkWithConsoleClass workWithConsoleClass = new WorkWithConsoleClass(); WorkWithFileClass workWithFileClass = new WorkWithFileClass(); EncryptionClass encryptionClass = new EncryptionClass(); CongruentialGeneratorClass congruentialGeneratorClass = new CongruentialGeneratorClass(); int a = workWithConsoleClass.InputA(); int c = workWithConsoleClass.InputC(); int startValue = workWithConsoleClass.InputStartValue(); int m = workWithConsoleClass.InputM(); var inputFile = workWithFileClass.ReadFile(); var keyWord = congruentialGeneratorClass.CongruentialGenerator(a, c, m, startValue, inputFile.Length); var binaryCodeOfAlphabet = workWithFileClass.GetBinaryCodeOfAlphabet(); var decimalCodeAndLetterOfAlphabet = workWithFileClass.GetDecimalCodeAndLetterOfAlphabet(); var encryptedMessage = encryptionClass.Encryption(inputFile, keyWord, binaryCodeOfAlphabet, decimalCodeAndLetterOfAlphabet); var decryptedMessage = encryptionClass.Decryption(encryptedMessage, keyWord, binaryCodeOfAlphabet, decimalCodeAndLetterOfAlphabet); workWithFileClass.OutputResultToFile(encryptedMessage, decryptedMessage); }
public static void Main(string[] args) { WorkWithConsoleClass workWithConsoleClass = new WorkWithConsoleClass(); WorkWithListClass workWithListClass = new WorkWithListClass(); workWithListClass.RemoveFromList(workWithListClass.CreateList(workWithConsoleClass.Input())); }
public static void Main(string[] args) { WorkWithFileClass workWithFileClass = new WorkWithFileClass(); WorkWithConsoleClass workWithConsoleClass = new WorkWithConsoleClass(); EncryptionClass encryptionClass = new EncryptionClass(); var inputMessage = workWithFileClass.ReadFile(); int m = workWithFileClass.GetAlphabetLength(); int n = workWithConsoleClass.ReadNFromConsole(); while (encryptionClass.GCD(n, m) != 1) { n = workWithConsoleClass.ReadAnotherNFromConsole(); } int k = workWithConsoleClass.ReadKFromConsole(); var numCodeOfAlphabet = workWithFileClass.GetNumCodeOfAlphabet(); var encryptedMessage = encryptionClass.Encryption(inputMessage, numCodeOfAlphabet, n, k, m); var decryptedMessage = encryptionClass.Decryption(encryptedMessage, numCodeOfAlphabet, k, n, m); workWithFileClass.OutputResultToFile(encryptedMessage, decryptedMessage); }
public static void Main(string[] args) { WorkWithConsoleClass workWithConsoleClass = new WorkWithConsoleClass(); WorkWithRegularExpressionsClass workWithRegularExpressionsClass = new WorkWithRegularExpressionsClass(); workWithRegularExpressionsClass.EmailSearch(workWithConsoleClass.Input()); }
public static void Main(string[] args) { WorkWithConsoleClass workWithConsoleClass = new WorkWithConsoleClass(); WorkWithRectangleClass workWithRectangleClass = new WorkWithRectangleClass(); workWithConsoleClass.Output(workWithRectangleClass.RectangleAreaCalculation(workWithConsoleClass.Input())); }
public static void Main(string[] args) { WorkWithConsoleClass workWithConsoleClass = new WorkWithConsoleClass(); FunctionClass functionClass = new FunctionClass(); workWithConsoleClass.Output(functionClass.StringCreation(workWithConsoleClass.Input())); }
public static void Main(string[] args) { WorkWithConsoleClass workWithConsoleClass = new WorkWithConsoleClass(); CreateTriangleClass сreateTriangleClass = new CreateTriangleClass(); workWithConsoleClass.Output(сreateTriangleClass.TriangleCreating(workWithConsoleClass.Input())); }
public static void Main(string[] args) { WorkWithConsoleClass workWithConsoleClass = new WorkWithConsoleClass(); User user = new User(workWithConsoleClass.InputUserData()); workWithConsoleClass.Output(user.ToString()); }
public static void Main(string[] args) { WorkWithConsoleClass workWithConsoleClass = new WorkWithConsoleClass(); TriangleClass triangle = new TriangleClass(workWithConsoleClass.Input()); workWithConsoleClass.Output(triangle.GetArea(), triangle.GetPerimeter()); }
public static void Main(string[] args) { WorkWithConsoleClass workWithConsoleClass = new WorkWithConsoleClass(); RoundClass round = new RoundClass(workWithConsoleClass.Input()); workWithConsoleClass.Output(round.GetAreaOfRound(), round.GetLengthOfRound()); }
public static void Main(string[] args) { WorkWithConsoleClass workWithConsoleClass = new WorkWithConsoleClass(); int[] array = new int[50]; WorkWithArrayClass.InputRandomArray(array); workWithConsoleClass.ArrayOutput(array); workWithConsoleClass.SumOutput(array.Sum()); }
public static void Main(string[] args) { WorkWithConsoleClass workWithConsoleClass = new WorkWithConsoleClass(); int[] array = workWithConsoleClass.InputArray(); WorkWithArrayClass workWithArrayClass = new WorkWithArrayClass(); workWithArrayClass.SortingArray(array); workWithArrayClass.SearchingElementInformation(array); }
public static void Main(string[] args) { WorkWithConsoleClass workWithConsoleClass = new WorkWithConsoleClass(); NonNegativeSumFunctionClass nonNegativeSumFunctionClass = new NonNegativeSumFunctionClass(); int[] array = new int[50]; nonNegativeSumFunctionClass.InputRandomArray(array); workWithConsoleClass.ArrayOutput(array); workWithConsoleClass.SumOutput(nonNegativeSumFunctionClass.SumElements(array)); }
public static void Main(string[] args) { WorkWithArrayClass workWithArrayClass = new WorkWithArrayClass(); WorkWithConsoleClass workWithConsoleClass = new WorkWithConsoleClass(); int[, ,] array = new int[7, 7, 3]; workWithArrayClass.InputRandomArray(array, 7, 7, 3); workWithConsoleClass.ArrayOutput(array, false); workWithArrayClass.ChangeElements(array, 7, 7, 3); workWithConsoleClass.ArrayOutput(array, true); }
public static void Main(string[] args) { WorkWithConsoleClass workWithConsoleClass = new WorkWithConsoleClass(); SumFunctionClass sumFunctionClass = new SumFunctionClass(); int[,] array = new int[10, 10]; sumFunctionClass.InputRandomArray(array, 10, 10); workWithConsoleClass.ArrayOutput(array, 10, 10); workWithConsoleClass.SumOutput(sumFunctionClass.SummaFunction(array, 10, 10)); }
public static void Main(string[] args) { WorkWithArrayClass workWithArrayClass = new WorkWithArrayClass(); WorkWithConsoleClass workWithConsoleClass = new WorkWithConsoleClass(); int[] array = new int[50]; workWithArrayClass.InputRandomArray(array); workWithConsoleClass.ArrayOutput(array, false); workWithArrayClass.SortArray(array, 0, array.Length - 1); workWithConsoleClass.ArrayOutput(array, true); workWithConsoleClass.TakeMinAndMaxElements(workWithArrayClass.TakeFirstAndLastArrayElement(array)); }
public void SearchingElementInformation(int[] array) { WorkWithConsoleClass workWithConsoleClass = new WorkWithConsoleClass(); int element = workWithConsoleClass.InputSearchingElement(); if (SearchingElement(element, array) == -1) { workWithConsoleClass.OutputArrayWithMessage(array, "There is no element = " + element + " in the array"); } else { workWithConsoleClass.OutputArrayWithMessage(array, "There is element = " + element + " in the array. " + "Its index is " + SearchingElement(element, array)); } }
public static void Main(string[] args) { WorkWithConsoleClass workWithConsoleClass = new WorkWithConsoleClass(); WorkWithArrayClass workWithArrayClass = new WorkWithArrayClass(); int[] array = new int[50]; workWithArrayClass.InputRandomArray(array); workWithConsoleClass.ArrayOutput(array); workWithConsoleClass.positiveElementsListOutput("Search:", workWithArrayClass.SearchPositiveElements(array)); workWithConsoleClass.positiveElementsListOutput("Delegat search:", workWithArrayClass.DelegatSearch(array)); workWithConsoleClass.positiveElementsListOutput("Anon search:", workWithArrayClass.AnonSearch(array)); workWithConsoleClass.positiveElementsListOutput("Lambda search:", workWithArrayClass.LambdaSearch(array)); workWithConsoleClass.positiveElementsListOutput("LINQ search:", workWithArrayClass.LinqSearch(array)); }
public static void Main(string[] args) { WorkWithConsoleClass workWithConsoleClass = new WorkWithConsoleClass(); workWithConsoleClass.SwichFontAdjustment(); }