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

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

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

Post 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.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply