Write a program that uses the random number generator to create sentences. The p
ID: 3538219 • Letter: W
Question
Write a program that uses the random number generator to create sentences. The program should use four arrays of pointers to char called article, noun, verb and preposition. The sentences are constructed in the following order: article, noun, verb, preposition, article, noun. The program should generate 20 sentences. The arrays should contain:
article "the", "one", "a", "some", "any"
noun "boy", "girl", "cat", "church", "bus"
verb "flew", "leeped", "ran", "sprint", "hopped"
preposition "to", "from", "over", "under", "on"
Explanation / Answer
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.