Question: Hello, I need help solving this Lab simulation, It uses Acronym for function statements and I am very new at coding on so I need
Hello, I need help solving this Lab simulation, It uses Acronym for function statements and I am very new at coding on so I need help solving it. It is very difficult. It is very confusing since the there are multiple inputs and on can only code it once.
An acronym is a word formed from the initial letters of words in a set phrase. 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 functionstring 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.
#include
#include
#include
using namespace std;
/* Define your function here */
int main() {
/* your code here. */
return 0;
}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
