Question: Option 7: Write a program in C or C++ that generates poems. (Random Numbers) This simple to state task is inspired by the subject of

 Option 7: Write a program in C or C++ that generates

Option 7: Write a program in C or C++ that generates poems. (Random Numbers) This simple to state task is inspired by the subject of random number generation. Background oue the stuctre of the language used in Englih ere you ind thatpatem emerges.or course it is not a simple task to produce a comprehensive poetry generating program. Thus what we require for this first experiment is the generation of simple three line verses. Here is an example of such a computer generated poem: A Glowering Book A glowering book shines in harmony with the feeding tongue. While feeding the book drools. The tongue regurgitates without thinking about a flawless mountain. It consists of a title and a threeline stanza. The structure of each line in the verse can, to a first approximation, take the form of A title in the form: A (adjective) (noun) (the words in () brackets are randomly chosen from the dictionary. A noun is a noun an adjective an adjective, etc. etc.) The first line is: A (adjective 1)(noun 1)(verb 1)(preposition 1)the(adjective 2(noun 2). The second line is: (adverb 1) the (noun 1)(verb 2) And the third line is made up with The (noun 2) (verb 3) (prep 2) a (adjective 3) (noun3). See what you can do to implement this fascinating little exercise in artificial Intelligence. Who knows, you may be the first person to ever get a book of machine produced poetry published

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!