title: English to Pig Latin C# Console Application
body: <p>I'm having some trouble making an applicaton in c# converting english to pig latin. I have everything else down except for when it comes to making the getTranslation method for it. For some odd reason I just can't figure it out. IF someone could give me some ideas I would appreciate it. </p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Text;
  using System.Threading.Tasks;
  
  namespace W15M5A2_CPigLatinApp
  {
  class W15M5A2_CPigLatinAppProgram
  {
      static void Main(string[] args)
      {
          string inputPhrase = "";
          string[] phraseOut;
  
          DisplayInfo();
          inputPhrase = GetPhrase();
          while (inputPhrase != "")
          {
              Console.WriteLine(" ");
              phraseOut = GetTranslation(inputPhrase);
              DisplayResults(inputPhrase, phraseOut);
              inputPhrase = GetPhrase();
          }
          Console.ReadKey();
      }
  
      public static void DisplayInfo()
      {
                 Console.WriteLine("********************************************************" +
              "\n***    You will be prompted to enter a string of     ***" +
              "\n***    words. The phrase will be converted into a    ***" +
              "\n***    pseudo Pig Latin with results displayed.      ***" +
              "\n\n***    Enter as many strings as you would like.      ***" +
              "\n********************************************************\n\n");
          Console.Write("\n\n\n   Press any key when you are ready to begin...");
          Console.ReadKey();
          Console.Clear();
      }
  
      public static string GetPhrase()
      {
          string inputPhrase;
          Console.WriteLine("Enter a phrase or group of words  " +
              "\nTo Exit, press the Enter key\n");
          inputPhrase = Console.ReadLine();
          return inputPhrase;
      }
      // GetTranslation method
      public static string[] GetTranslation(string phraseIn)
      {
  
  
      }
  
      public static void DisplayResults(string input, string[] output)
      {
          Console.Clear();
          Console.WriteLine("Original Phrase: " + input + "\n");
          Console.Write("\nNew Phrase: ");
          foreach (string i in output)
          {
              Console.Write(i + " ");
          }
          Console.WriteLine("\n");
      }
  
  }
  </code></pre>
  
  <p>}</p>