Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started