Question: 7 . 1 0 LAB: Acronyms An acronym is a word formed from the initial letters of words in a set phrase. Write a program
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. Append a period after each letter in the acronym. If a word begins with a lower case letter, don't include that
letter in the acronym. Assume the input has at least one upper case letter.
Ex: If the input is:
Institute of Electrical and Electronics Engineers
the output is:
I.EEE
Ex: If the input is:
Association for computing MACHINERY
the output is:
AM
Although the letters NERY in MACHINERY are upper case, those letters are omitted for being a part of the word MACHINERY.
Hint: Use isupper to check if a letter is upper case.
LAB
: LAB: Acronyms
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
