|
-
Nov 14th, 2010, 03:49 PM
#1
Thread Starter
New Member
Confusing code to program? =/
Heya, I'm a beginner user with Visual Basic 8 and am trying to write a specific program but can't even figure out how to start.
I'm trying to create a program that produces random sentences as output. With five arrays of strings, one each for nouns, adjectives, verbs, prepositions, and articles. Each array should hold several words for that part of speech. Like, the Articles array could hold the strings “the” and “a”; the Nouns array could hold “Martian”, “baby”, “skunk”, “computer”, and “mosquito”; the Prepositions array could hold “around”, “through”, “under”, “over”, and “by”; and so on.
It's supposed to generate sentences by randomly choosing eight words (randomly generating eight array indices) from these arrays, always constructing sentences by using the parts of speech in the following order: article, adjective, noun, verb, preposition, article, adjective, noun.
Also, theh code should be properly modularized so that the code to generate each part of speech is not repeated.
Any help would be much appreciated!
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
|