How to solve LAB: Acronyms using python

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter7: User-defined Simple Data Types, Namespaces, And The String Type
Section: Chapter Questions
Problem 3PE
icon
Related questions
Question

How to solve LAB: Acronyms using python

6.27 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:
Ι.Ε.Ε.Ε.
Ex: If the input is:
Association for computing MACHINERY
the output is:
A.M.
The letters ACHINERY in MACHINERY don't start a word, so those letters are omitted.
Hint: Use isupper() to check if a letter is upper case.
Transcribed Image Text:6.27 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: Ι.Ε.Ε.Ε. Ex: If the input is: Association for computing MACHINERY the output is: A.M. The letters ACHINERY in MACHINERY don't start a word, so those letters are omitted. Hint: Use isupper() to check if a letter is upper case.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Fundamentals of Boolean Algebra and Digital Logics
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning