If a word ends in a append an r for example tuna becomes


Programming in java

1) If a word ends in 'a', append an 'r'. For example "tuna" becomes "tunar", "Cuba" becomes "Cubar", and "idea" becomes "idear". (Don't change this to an 'h' based on the previous rule; leave it as an 'r'.) Do not apply this rule to the word "a", so "a tuna" should become "a tunar", not "ar tunar".

2) Replace the word "very" with the word "wicked". So "very hard" becomes "wicked hahd".

Make sure that these rules apply to capitalized words/letters as well as lower-case.

3) If 'r' is at the end of a word and is preceded by "ee" or 'i' replace 'r' with "yah" instead of 'h'. For example, "deer" becomes "deeyah" instead of "deeh", but "veneers" still becomes "veneehs".

4) If 'r' is at the end of a word and is preceded by "oo", replace 'r' with "wah". For example, "door" becomes "doowah" instead of "dooh" (but "doors" still becomes "doohs").

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: If a word ends in a append an r for example tuna becomes
Reference No:- TGS02902632

Expected delivery within 24 Hours