Create an array with some words you know and like (each should be '\0' terminated). (This array will, of course, be two-dimensional. Use padding '\0's to make each word the same maximum length.)
Select 8 random words to display per line. Display 20 lines like this. (Hint: randomly select a row and print the word in that row of the 2D array.)
Document any procedures you create well!
This assignment is Level 2.5.
Add (Level 1.5) to make each word of differing length rather than '\0' padded. Now the problem lies in finding the offset of each word since they aren't consistently measured. (Hint: Perhaps a parallel array of offsets which can be randomly selected from..?)
Add (Level 2-3) to have three arrays: subjects, verbs, and objects. Instead of generating 8 random words per line, generate random sentences (subj verb obj) -- one per line. This option has variable credit because the more coherent your sentences can be (not 'are' since it will be random selection), the more credit you get. I'll cluster it into 2, 2.5, or 3.
Example:
Subj: 'The boy' 'A girl' 'Howard' 'Georgette' 'Many boxes' Verb: 'ran' 'studied' 'fell' 'threw' 'ate' Obj: 'apples' 'away' 'Latin' 'the ball' 'skunks'
Samples:
The boy fell away. A girl studied Latin. Many boxes fell apples. Georgette threw the ball.
As you can see, some make sense, but not all. Hence the variable credit. (Also note that 'word' could mean phrase so that things look a little nicer on-screen.)
Add (Level 2) to add adjectives to your subjects and objects and adverbs to your verbs. Again, randomly select them from separate lists.