16.3 (Comparing strings) Write an app that uses
CompareTo to compare two
strings input by the user. Output whether the first
string is less than, equal to or greater than the second.
16.4 (Random Sentences and Story Writer) Write an app that uses random-number generation to create sentences. Use four arrays of
preposition.Create a sentence by selecting a word at random from each array in the following order:
noun. As each word is picked, concatenate it to the previous words in the sentence. The words should be separated by spaces. When the sentence is output, it should start with a capital letter and end with a period. The program should ...