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 fo

Posted: Thu May 05, 2022 1:17 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, for example bus/buses, marsh/marshes,
tax/taxes.
• If the word’s last letter is 'y’, relplace the ‘y’ with “ies” at
the end of the noun, for example city/cities, puppy/puppies.