decodeMessage - % reveal a secrect message. The result...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
% 9/9/09 9:09 PM % Function Name: decodeMessage % Input: 1. jumbledLetters (string) - a string that contains jumbled upper % and lower case letters with spaces. % characters % Output: 1. message (string) - a string that does not contain any upper % case letters. contains a message % % Function Description: % The function takes in a string which is a sentence of upper and lower % case letters. The function then removes the upper case letters to
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: % reveal a secrect message. The result should not contain any upper case % letters. The result may contain lower case letters, spaces and numbers. % function message = decodeMessage(message) message(message>='A'&message<='Z') = ''; % just changes upper case letter to nother, i.e. gets rid of them...
View Full Document

This note was uploaded on 10/22/2009 for the course CS 1371 taught by Professor Stallworth during the Fall '08 term at Georgia Institute of Technology.

Ask a homework question - tutors are online