title: method to ask questions from array A and store corresponding answers in Array b (3 strings & 1 double)
body: <p>Newb/hobbiest here trying to increase my understanding of arrays and to that end i'm trying to build a little meal calculator which will store user data in an array which would hold three strings and one double (The Users First Name, The Users Last Name, the Name of the Resturant, and a DOUBLE which is the cost of the meal). I know there are far easier ways to do this then the way I'm trying to do this, but my purpose is to increase my understand of how arrays work now that i'm starting to understand loops and methods (I get lost/am scared of arrays so i'm forcing myself to work with arrays all weekend long starting tonight - long weekend and i hope it will a worthwhile weekend of learning :D )</p>
  
  <p>I am currently working on a method to populate the array which would work as follows:
  Call GetUserData(question asked);
  GetUserData asks the user for a specific type of data (string unless last position [3] then it's a double which I'll do math on later)
  GetUserData Loop calls arrQuestions[] to ask user question
  GetUserData reads user answer into corresponding position in arrUserData[]
  arrUserData[] is populated (at this point with four strings, i'll have to convert the four string to a double when i do math which should be feasible i hope)</p>
  
  <p>So in a nutshell, i'm trying to build a method that asks a series of questions from one array and stores the answers in another array that i can then use to do all sorts of wacky things with as i try to get a better understanding of arrays and how to use them and what they are good for and what they aren't good for.</p>
  
  <p>And I promise all of you I've already tried to Google an answer to this, I've read up on arrays at several places including <a href="http://msdn.microsoft.com/en-us/library/ttw7t8t6.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/ttw7t8t6.aspx</a> and stackOverflow, but the answers I've thus found aren't written in a way someone of my skill level understands/my understanding isn't such that I can divine the answer from what i have been able to read thus far.</p>
  
  <p>The following code all sits within the 'program' class</p>
  
  <pre><code>public void Play()
  {
     GetString("+ + +  Meal Calculator Exercise  + + +");
  
     String command = "";
  
     String[] arrQuestions = new String[3];//questions asked
     arrQuestions [0] = "First Name: ";//string back
     arrQuestions [1] = "Last Name: ";//string back
     arrQuestions [2] = "Restaurant Name: ";//string back
     arrQuestions [3] = "Cost of Meal: ";//I want a double back for this question
  
  
     String[] arrUserData = new String[3];/user answers stored
     arrUserData[0] = " ";//string 
     arrUserData[1] = " ";//string
     arrUserData[2] = " ";//string
     arrUserData[3] = " ";//figure out how to convert to double 
  
  
     do { 
        GetString("+ + +  Meal Calculator Exercise  + + +");
  
        GetUserData(arrQuestions[i]);//run loop, ask questions populate arrUserData array 
  
        GetString("Again? ");
        command = Console.ReadLine().ToLower().Trim();
        Console.Clear();
     }
  
     while (command == "y" || command == "yes");
  
     GetString("+ + +  Thank you  + + +  Have a wonderful time  + + +  Goodbye!  + + +");        
  }
  
  public String GetString(String strTxt) {
     Console.WriteLine(strTxt);return Console.ReadLine();}
  
  public Array GetUserData(String strTxt)
  {
     for (int i = 0; i &lt; arrUserData.Length; i++)
     Console.WriteLine(arrQuestion[i]);
     return Console.ReadLine(arrUserData[i]);
  }
  
  
  static void Main(string[] args){
     Program myProgram = new Program(); 
      myProgram.Play();}
  </code></pre>