Question: AP COMP SCI A: Write a method called FunnyString that will take a string as a parameter. If the word funny is in the string
AP COMP SCI A:
Write a method called FunnyString that will take a string as a parameter. If the word funny is in the string it will replace it with haha. If the word isn't in the string it will replace all vowels (capital and lower case) with a * and capitalize all letters in the sentence. Note it should only do this if the word is NOT found in the sentence. Either way it will return the modified sentence. Note you do not have to write main or anything else for this program other than the method
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
