Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need the java code for this Write the function string PluralForm(String word) which takesa standard English word as a parameter and returns the plural

I need the java code for thisimage text in transcribed

Write the function string PluralForm(String word) which takesa standard English word as a parameter and returns the plural form based on the following English rules. Punctuation should be preserved If the word ends in s, x, z, ch, or sh, add es to the end of the word If the word ends in o preceded by a consonant, add es to the end of the word If the word ends in y preceded by a consonant, replace the y with ies. . For all other cases, add an s to the end of the word. Example runs are shown below This program converts an English word to its plural form English word: toy Plural form: toys

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

SQL Antipatterns Avoiding The Pitfalls Of Database Programming

Authors: Bill Karwin

1st Edition

1680508989, 978-1680508987

More Books

Students also viewed these Databases questions

Question

what is another name for a list scan

Answered: 1 week ago

Question

9. Describe the characteristics of power.

Answered: 1 week ago