Question: Hello i just need a help in this C++ program please 5.6 Assignment: Text message decoder Use getline () to get a line of user
Hello i just need a help in this C++ program please
5.6 Assignment: Text message decoder Use getline () to get a line of user input into a string: Enter text: IDK if I'1l go. It's my BFF's birthday Search the string using find) for common abbreviations and replace() them with their long form. In addition, use a for loop to iterate through each character of the string and replace any occurences ofwith T Enter text: IDK f I'll go. It's my BFF's birthday I don't know if I'1l go! It's my best friend forever's birthday Use loops for each abbreviation to replace multiple occurrences: Enter text: Hi BFF. IDK where I'm going but it's not going to be with you! JK you know you're my BFF. IDK why I just said that. Anyway, TMI. Why do I always give people TMI? IDK. Alright TTYL bye BFF! Hi best friend forever! I don't know where I'm going but it's not going to be with you! just kidding you know you're my best friend forever! I don't know why I just said that! Anyway, too much information! Why do I always give people too much information! I don't know! Alright talk to you later bye best friend forever! Support these abbreviations: BFF best friend forever IDK - Idon't know JK-just kidding TMI-too much information TTYL-talk to you later Use the predefined constants for each abbreviation BFF, IDK, etc. and each long form BFF_LONG, IDK_LONG, etc. rather than hardcoding strings inside the loop
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
