i safari File Edit View History Bookmarks Window Help 67 D T

i safari File Edit View History Bookmarks Window Help 67% D. Thu 10:12 PM azybooks.zyante.com 0 UC Riverside Buckys C++ P Chegg Study Chegg.com Please Help, E... Please Help, E... CS 010/10v 1... Strings: Mem.. Strings - YouT Branching- C 4.7 PROGRAM 4 (part 1): Text message decoder VERIFY EMAIL | × .6 LAB 4: Loops-Replacing cha characters 4.7 PROGRAM 4 (part 1): Text message decoder (1) Use getline) to get a line of user input into a string. Output the line. Ex: Enter text: IDK if I\'1l go. It\'s my BFF\'s birthday You entered: IDK if I\'1l go. It\'s my BFF\'s birthday (2) Extend to search the string (using find0) for common abbreviations and print a list of each found abbreviation along with its decoded meaning. Ex Enter text: IDK if I\'1l go. It\'s my BFFs birthday You entered: IDK if I\'1l go. It\'s my BFF s birthday BFF: best friend forever IDK: I don\'t know Support these abbreviations: BFF -best friend forever IDK--Idon\'t know JK -- just kidding TMI- too much information ·TYL-talk to you later Lab Submission 4.7.1: Sion 4.7.1: PROGRAM 4 (part 1): Text message decoder C++ Spaces: 1 20

Solution

str=input(\'enter text :\')

print \'you entered \',str

if(str.find(\'BFF\')!=null):

print \'BFF:best friends forever \'

if(str.find(\'IDK\')!=null):

print \'IDK: I dont know \'

if(str.find(\'JK\')!=null):

print \'JK : just kidding \'

if(str.find(\'TMI\')!=null):

print \'TMI : too much information \'

if(str.find(\'TTYL\')!=null):

print \'TTYL : talk to you later\'

 i safari File Edit View History Bookmarks Window Help 67% D. Thu 10:12 PM azybooks.zyante.com 0 UC Riverside Buckys C++ P Chegg Study Chegg.com Please Help, E.

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site