Exemplo n.º 1
0
        private static string IronMan(string[] values)
        {
            string base64 = "";

            //Put values in alphabetic order
            values = UtilityClass.AlphabeticSort(values);

            //Shift vowels to the right
            values = UtilityClass.ShiftVowels(values);

            //Concatenate values into one string, using ASCII
            string concatenatedString = UtilityClass.ConcatenateWords(values);

            //Encode
            base64 = UtilityClass.StringToBase64String(concatenatedString);
            return(base64);
        }
Exemplo n.º 2
0
        private static string CaptainAmerica(string[] values, double startingFibonacciNumber)
        {
            string base64 = "";

            //Shift vowels to the right
            values = UtilityClass.ShiftVowels(values);

            //Sort in reverse
            values = UtilityClass.ReverseAlphabeticSort(values);

            //Replace vowels with Fibonacci
            values = UtilityClass.ReplaceVowelsFibonacci(values, startingFibonacciNumber);

            //Concatenate values into one string, using ASCII
            string concatenatedString = UtilityClass.ConcatenateWords(values);

            //Encode
            base64 = UtilityClass.StringToBase64String(concatenatedString);
            return(base64);
        }