Question: do task 1 in C dgE 8196 6:41 AM LTE 1 au une pace sel Torn by your TA. Piease neip oner students in need
do task 1 in C

dgE 8196 6:41 AM LTE 1 au une pace sel Torn by your TA. Piease neip oner students in need when you are finished with a task. You may work in pairs if you wish. However, I encourage you to compose your own solution to each problem Have a great time! Labs are a vital part to your education in CptS 121 so work diligently Tasks: 1. Adapted from Exercise 8.11 in Deitel & Deitel C How to Program. Write a program that uses random number generation to create sentences. The program should use four arrays of pointers to chars called article, noun, verb, and preposition. The program should create a sentence by selecting a word at random from each array in the following order: article, noun, verb preposition, article, and noun. As each word is picked, it should be concatenated to the previous words in an array large enough to hold the entire sentence. The words should be separated by spaces. When the final sentence is output, it should start with a capital letter and end with an exclamation mark (!). The program should generate 20 such sentences. The arrays should be filled as follows: The article array should contain "the", "a", "one", "some", and "any", the noun array should contain "boy", "girl", "dog", "town", and "car"; the verb array should contain "drove', "jumped", "ran", "walked" and "skipped"; the preposition array should contain "to" "from", "over", "under", and "on". You may add other strings to each one of these arrays if you wish
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
