Question: cience I ... Chapter 5 CSC108 HW5B CSC 108: Computer Science I home > 5.40: LAB: Acronyms LEzyBooks catalog ? 5.40 LAB: Acronyms An acronym

 cience I ... Chapter 5 CSC108 HW5B CSC 108: Computer Science

cience I ... Chapter 5 CSC108 HW5B CSC 108: Computer Science I home > 5.40: LAB: Acronyms LEzyBooks catalog ? 5.40 LAB: Acronyms An acronym is a word formed from the initial letters of words in a set phrase. Define a function named CreateAcronym that takes a string parameter and returns the acronym of the string parameter, 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. Then write a main program that reads a phrase from input, calls CreateAcronym() with the input phrase as argument, and outputs the returned acronym. Assume the input has at least one upper case letter. Ex: If the input is: Institute of Electrical and Electronics Engineers the output should be: I . E . E . E . Ex: If the input is: Association for computing MACHINERY the output should be: A. M. Although the letters ACHINERY in MACHINERY are upper case, those letters are omitted for being a part of the word MACHINERY. The program must define and call a function: string CreateAcronym(string userPhrase) Hint: Use isupper() to check if a letter is upper case. 149676 3179250.qx3zay re to search O Hi 99: 2 0 9 hp 19 144 10 1I 112 sort sc delete 13 4 - FB 71 DDI # & 5 9 O 4 backs 3 4 T Y U O P E R D F G H K L

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!