Joe M.

asked • 10/06/20

Acronyms acronyms

An acronym is a word formed from the initial letters of words in a set phrase. Write a program whose input is a phrase and whose output is an acronym of the input. If a word begins with a lower case letter, don't include that letter in the acronym. Assume there will be at least one upper case letter in the input.

Ex: If the input is:

Institute of Electrical and Electronics Engineers

the output should be:

IEEE

Your program must define and call a method thats returns the acronym created for the given userPhrase.

public static String createAcronym(String userPhrase)





import java.util.Scanner;


public class LabProgram {

/* Define your method here */

public static void main(String[] args) {

/* Type your code here. */

}

}

1 Expert Answer

By:

Patrick B. answered • 10/06/20

Tutor
4.7 (31)

Math and computer tutor/teacher

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.