title: c++ Scrabble game using arrays
body: <p>I have to make a scrabble scoring game using 2 arrays. The first array holds the user inputted word and the second array holds the value of each letter. Lastly a function is needed to calculate the score. Im having trouble assigning the user values to the second array to get the score and getting the right code for the function.</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;stdlib.h&gt;
  #include &lt;cmath&gt;
  #include &lt;ctime&gt;
  
  using namespace std;
  
  int scoreCalculator(int total);
  char userWord;
  int points;
  int total=0;
  int main()
  {
  
  char userWord[11];
  for (int i=0; i&lt;11; i++)
  {
      userWord[i]='\0';
  }
  
  cout&lt;&lt;"Enter your word less than 10 letters: "&lt;&lt;endl;
  cin&gt;&gt;userWord;
  cout&lt;&lt;"Here is the word you inputted: "&lt;&lt;userWord&lt;&lt;endl;  
  
  int scrabblePoints[26]={1,3,3,2,1,4,2,4,1,8,5,1,3,1,1,3,10,1,1,1,1,4,4,8,4,10};
  
  for(int j=0; j&lt;26; j++)
  {
      userWord[i]
  }
  
  cout&lt;&lt;"Here is your score: "&lt;&lt;scoreCalculator(total)&lt;&lt;endl;
  
  }
  int scoreCalculator(int total)
  {
  
  total+=scrabblePoints[j];
  
  }
  </code></pre>
  
  <p>This is what I have so far and where im stuck at</p>