function out = MessagesDecode(myString)
switch myString
case "BFF"
out = "best friends forever";
case "BTW"
out = "by the wa";
case "IDK"
out = "I don't know";
case "IMHO"
out = "in my humble opinion";
case "LOL"
out = "laughing out loud";
case "TMI"
out = "too much information";
otherwise
out = "Unknown message";
end
end
MessagesDecode("BFF")
MessagesDecode("ABC")
OUTPUT

Please up vote. I need it very badly right now.
matlab 3. Write a function called MessageDecode that matches an input string scalar to a known...
Text message abbreviation decoder (Java) (1) Complete the following method: /** * Decodes the text abbreviation. * * @param textAbbr Text abbreviation. * @return The decoded abbreviation if known. Otherwise, returns Unknown. */ public static String decTextAbbr(String textAbbr) { // FILL IN BODY } If the parameter matches a known text message abbreviation, return the unabbreviated form, else return: Unknown. Support two abbreviations: LOL -- laughing out loud, and IDK -- I don't know. For example: decTextAbbr("LOL") returns laughing out...