196k views
3 votes
LAB: 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.
If the input is
Institute of Electrical and Electronics Engineers
the output should be
IEEE

1 Answer

4 votes

Answer:

LAB means laboratory

IEEE means institute of electrical and electronic engineer

User Tiberiu
by
4.8k points