Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Logic In Databases International Workshop Lid 96 San Miniato Italy July 1 2 1996 Proceedings Lncs 1154

Authors: Dino Pedreschi ,Carlo Zaniolo

1st Edition

3540618147, 978-3540618140

More Books

Students also viewed these Databases questions