Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C PROGRAMMING Front-line researcher Jack Smith is known as a new-career, creative scientist. Make a bunny program similar to the one he has. The program

C PROGRAMMING

Front-line researcher Jack Smith is known as a new-career, creative scientist. Make a bunny program similar to the one he has. The program reads five pairs of nouns and related verbs into the tables, e.g. the sun rises the bell rings cat meows the bird is flying door opens The program produces the number of innovative puppy phrases the user wants and prints them on the screen. Sentences are randomly formed from noun-verb pairs. Sentences can take four different forms, which are equally probable. basic phrase, as an example: A cat flies. and a combined sentence obtained with the -connective, as an example: The door rings and the cat rises. or a combined phrase obtained with the -connective, for example: The bell rings or the bird rings. implicit if --- then a sentence, as an example: If the sun flies, then the clock opens. Sentences always start with a capital letter and end with a period. Between asking for information and printing bunny sentences, print the title bar "--- Puppy Sentences ---". Example run: Enter a noun (max 100 characters)> noun1 Enter a verb (max. 100 characters)> verb1 Enter a noun (max 100 characters)> noun2 Enter a verb (max. 100 characters)> verb2 Enter a noun (max 100 characters)> noun3 Enter a verb (max 100 characters)> verb3 Enter a noun (max 100 characters)> noun4 Enter a verb (max 100 characters)> verb4 Enter a noun (max 100 characters)> noun5 Enter a verb (max. 100 characters)> verb5 How many bunny sentences are generated> 4 --- Puppy Sentences --- Noun5 verb5 or noun3 verb2. If noun1 verb5, then noun3 verb5. Noun1 verb5. Noun3 verb4 and noun4 verb1.

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

Programming The Perl DBI Database Programming With Perl

Authors: Tim Bunce, Alligator Descartes

1st Edition

1565926994, 978-1565926998

More Books

Students also viewed these Databases questions