Question: c++ 3.31 LAB*: Program: Text message expander (1) Get a line of text from the user. Output that line. (1 pt) Ex: Enter text: IDK
3.31 LAB*: Program: Text message expander (1) Get a line of text from the user. Output that line. (1 pt) Ex: Enter text: IDK how that happened. TIYL. You entered: IDK how that happened. TTYL. (2) Output the line again, this time expanding common text message abbreviations. ( 5 pts) Ex: Enter text: IDK how that happened. ITYI. You entered: IDK how that happened. TTYL. Expanded: I don't know how that happened. talk to you later. Support these abbreviations: - BFF - best friend forever - IDK - I dorit know - JK - just kidding - TMI-too much information - TYYL-talk to you later Note: If an abbreviation appears twice, only expand its first instance
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
