title: How to find a frequent character in a string written in pseudocode. Thanks
body: <p>Most Frequent Character 
  Design a program that prompts the user to enter a string, and displays the character that appears most frequently in the string.</p>
  
  <p>It is a homework question, but my teacher wasn't helpful and its driving me crazy i can't figure this out. </p>
  
  <p>Thank You in advance.</p>
  
  <p>This is what i have so far! </p>
  
  <pre><code>Declare String str
  Declare Integer maxChar
  Declare Integer index
  
  Set maxChar = 0
  
  Display “Enter anything you want.”
  Input str
  
  For index = 0 To length(str) – 1
      If str[index] =
  </code></pre>
  
  <p>And now im stuck. I dont think its right and i dont know where to go with it!</p>