determine which letter appears most frequently in the text

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • wazzup
    New Member
    • Feb 2007
    • 25

    determine which letter appears most frequently in the text

    I'm looking for info talk about this but can't find it on google. Anyone help me with this please! Do I need to use array for this?
  • RedSon
    Recognized Expert Expert
    • Jan 2007
    • 4980

    #2
    You could get away with using only a few variables. Try variables like currentCount, and maxCount, and letterOfMaxCoun t. Those variable names should give you a good idea of how to proceed.

    And since this type of problem is a classic entry level programming assignment this thread is being closed. We cannot do your homework for you but if you have specific problems with the code in your assignment please feel free to post code snippets in another thread and ask your specific questions there.

    Comment

    Working...