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. Your program must define and call a function string CreateAcronym(string userPhrase) that returns the acronym created for the given userPhrase. Hint: Refer to the ascii table to make sure a letter is upper case. I need help with in C++. Please follow the instructions above and no extra words just the instructed output thanks. I dont know how to leave a comment so I am saying in advance, thank you for your help
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. Your program must define and call a function string CreateAcronym(string userPhrase) that returns the acronym created for the given userPhrase.
Hint: Refer to the ascii table to make sure a letter is upper case.
I need help with in C++. Please follow the instructions above and no extra words just the instructed output thanks. I dont know how to leave a comment so I am saying in advance, thank you for your help.
Step by step
Solved in 5 steps with 2 images