|
-
Apr 6th, 2005, 06:07 AM
#1
Thread Starter
New Member
Help Required - String Analyser
I need to write the following program however im new to programming and i desperately need some help. Its the coding part i struggle with, if someone can start me off, give me tips, help me in any way please reply. The following link is a picture of how this program needs to look.
http://www.wrestlefury.com/prog.jpg
The program should calculate and display the number of words that contain 1, 2, 3, 4 or 5 characters as shown in the example. Any words that contain 6 or more characters should be counted together.
If the user does not enter a string before pressing the button, an error message should be displayed and the user asked to enter another string.
The program should be able to handle situations where there is more than one space between the words in the sentence. Punctuation characters such as comma, full-stop, etc can be treated as characters in words.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|