Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hi. I am trying to improve my grades before the end of the semester. Can someone please assist me with this program? I am writing

image text in transcribed

image text in transcribed

image text in transcribed

Hi. I am trying to improve my grades before the end of the semester. Can someone please assist me with this program? I am writing in C++ language. Thank you so much.

You have a set of different types of robots that combine to generate poetry. All robots have a common vocabulary and have a unique color that identifies them (red, blue, purple, green, yellow, orange). The kind of words in the vocabulary that each robot understands depends on the type of the robot. Each robot produces phrases that are randomly generated on command using a vocabulary that consists of nouns, verbs, adverbs, adjectives, articles, and prepositions. The types of phrases that each robot can produce are: o The red robots produce a phrase consisting of 1 adjective followed by 1 noun i.e., "happy campers') The blue robots produce a phrase consisting of 1 verb followed by 1 adverb i.e., eating rapidly The purple robots produce a phrase consisting of 1 preposition, 1 article, 1 adjective, and 1 noun ("under the fiery rock') o The green robots produce a phrase consisting of 1 article, 1 adjective, 1 noun, and 1 verb (i.e., "the happy sun burns' o The yellow robots produce a phrase consisting of 2 nouns joined by "and' 1.c cow and chicken') o The orange robots produce a phrase consisting of 2 verbs joined by "or" i.e., "bending or calling") You have six data files, one for each type of word (nouns.txt, verbs.txt, adverbs.txt, adjectives.txt, articles txt and prepositions txt DAPrograms C++ PoetryDebug Poetry.exe beautiful tourist Your program will combine these phrases into awfully meeting poems. There are four set modes: over our motionless freezer red, blue, purple which early nest hearing hand and wrist green, yellow, purple, orange around its vivacious captain green, yellow, red, blue, orange, purple upsetting or shrinking any 4 randomly selected robots hine dead oracle forbidding bear and wikipedian obedient nightingale The output at the right shows the poems legally washing ore telling or nuzzling produced for each of these modes. amid his defiant pheasant Note that you have a chance for extra credit your narrow bed singing awlessly attacking by adding a loop and a user menu to select the until an curly intern at his jolly pheasant poem type

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_2

Step: 3

blur-text-image_3

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

More Books

Students also viewed these Databases questions

Question

Prepare an electronic rsum.

Answered: 1 week ago