Plural Noun Rule #3: Nouns that end in "y", with a consonant before the y, change the y to i and add es. For example: penny=pennies. The letter before the y is a consonant. Therefore, the y changes to an i. Plural Noun Rule #4: Nouns that end in "y", with a vowel before the y, just add s. For example, boy=boys. The letter before the y is a vowel. Therefore, nothing changes and just an "s" is added. In this assignment, you are asked to define and test a function that helps teach simple grammar rules in English. void recommend(string adjective, string\& comparative, string\& superlative) This function is to receive an adjective as a pass-by-value parameter and store its comparative and superlative forms into respective pass-by-reference parameters. The function only has to work with adjectives of one syllable or of two syllables that end with the letter y. Review the common rules explained in the first seven and half minutes of this video on this website. The function does not have to worry about any adjective that is an exception to the common rules, such as good or bad. Here are a few sample test cases for a working recommend function. To demonstrate testing of the function, you will need to display value of the parameters AFTER calling the recommend function. Here's one example testing from inside the main function: ``` string test_adj, test_comparative, test_superlative; //Test case #1: simply adding er and est at the end of an adjective test_adj = "fast"; recommend(test_adj, test_comparative, test_superlative); cout << test_adj << "\t\t\t"; cout << test_comparative << "\t\t\t"; cout << test_superlative; ``` Do not use output statements inside the recommend function. For each test case, you are required to use a comment to explain which comparative/superlative rule it is testing. Do not collect user input. When you are ready to submit your assignment, run the program for all the test cases, capture screenshots and upload them to Canvas. Hints: Given the following declaration of a string variable whose value is "computer", The size() function can be used to determine the index of the last letter.
