Page 1 of 1

in java!! Write a program that takes a singular form of a noun and produces the plural form. For most nouns, the plural

Posted: Thu May 05, 2022 1:31 pm
by answerhappygod
in java!!
Write a program that takes a singular form of a noun and
produces the plural form. For most nouns, the plural form has “s”
added to the end, but allow for the following exceptions:
• If the word’s last letter is 's’, 'h’, 'x’, or 'z’, add “es” to
the end of the noun, example date/dates.
• If the word’s last letter is 'y’, replace the ‘y’ with “ies” at
the end of the noun, example baby / babies