Question: 8. Programming, 9 points. Write a static method called acronym that takes as a parameter a string containing a phrase and that returns a string

 8. Programming, 9 points. Write a static method called acronym that

8. Programming, 9 points. Write a static method called acronym that takes as a parameter a string containing a phrase and that returns a string that has the acronym for the phrase. For example, the following call: acronym ("self contained underwater breathing apparatus") should return "SCUBA". The acronym is formed by combining the capitalized first letters of each word in the phrase. Words in the phrase will be separated by one or more spaces. There might be extra spaces at the beginning or end of the phrase. The string passed as a parameter will not contain any characters other than spaces and letters, and is guaranteed to contain at least one word. Below are several sample calls. Value Returned Method Call ") acronym (" automatic teller machine acronym ("personal identification number") acronym ("computer science") acronym ("merry go round") acronym ("All my Children ") acronym (" grand old party ") acronym (" loner ") "ATM" "PIN" "CS" "MGR" "AMC" "GOP" "I" You may use only the string methods included on the cheat sheet and you are not allowed to use a scanner to solve this

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!