Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please use mathlab Homework 4-Logicals and Masking Function Name: frultDecrypt lon Inputs: 1, (char) A vector of the encrypled message Outputs: 1. (char) A vector

image text in transcribedPlease use mathlab
Homework 4-Logicals and Masking Function Name: frultDecrypt lon Inputs: 1, (char) A vector of the encrypled message Outputs: 1. (char) A vector containing the secret message Background: You have recenty joined the Association of People Promoting the Love and Enjoyment of Fruits (APPLES), an unde ground sociaty dedicated to the love and support of fruis worldwide. As this is a secret organizationany and all informaton regarding ene organizations detais are encrypted using a secret system. You quickly realize that deciphering these messages by hand is rather bothersome, and help you uncover the secrets decide to write a MATLAB function that wi Function Description: Write a funcion that wil take an encrypted message and decipher t by following rules. 1. Remove any nambers, punctuation characters, and spaces 2 Move al uppercase letters to the beginning of the vector, followed by all lowercase etters (while preserving the order of both). 3 Make any remaining characters lowercase 4. Remove any character that comes immediately AFTER one of the character in the word ruit (., and t.If the last letler is one of these characters, you can gnore it Example Input: 'in3nes.pefsewrYFI:1cz)u AVn i0821 Actes > InMtpefurYFIcZun0Rdts (renoves non alphabet characters) MY IZANORAIntpefurcunidts (reorders values based on capitalization) > 'myfizavoraintpefwrcunidts (lowercase al1 values) Output:'nyfavoritefruit Notes: Folow the order given above. Note above how '1 and '2 were both removed because each follows a loter of frur The deletions can be consecutive

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Essentials of Database Management

Authors: Jeffrey A. Hoffer, Heikki Topi, Ramesh Venkataraman

1st edition

133405680, 9780133547702 , 978-0133405682

More Books

Students also viewed these Databases questions

Question

What are the major social responsibilities of business managers ?

Answered: 1 week ago

Question

What are the skills of management ?

Answered: 1 week ago

Question

Be familiar with the five basic ways to manage demand.

Answered: 1 week ago