Question: In simple C language. Q5. (20 points) (Random Sentences) (Extra Credit) Part a (15 points): Write a program that uses random number generation to crea

In simple C language.  In simple C language. Q5. (20 points) (Random Sentences) (Extra Credit)

Q5. (20 points) (Random Sentences) (Extra Credit) Part a (15 points): Write a program that uses random number generation to crea program should use four arrays of pointers to char called article, noun, verb and preposition. should create a sentence by selecting a word at random from each array noun, verb, preposition, article and noun. As each word is picked, it sh previous words in an array large enough to hold the entire sentence. The words should be spaces. When the final sentence is output, it should start with a capital letter and end with a per program should generate 20 such sentences. The arrays should be filled as follows: The article arrays contain the articles "the", "a", "one", "some" and "any"; the noun array should contain the nouns "girl", "dog", "town" and "car"; the verb array should contain the verbs "drove", "jumped", "ran", "walked and "skipped"; the preposition array should contain the prepositions "to", "from", "over", "under" and gram that uses random number generation to create sentences. The program in the following order: a ould be concatenated rticle to the by hould on". Part b (5 points): After the preceding program is written and working, modify it to produce a short story consisting of several of these sentences. Submit a repl.it url link for your program

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!