Question: Use MatLab to solve this problem!!!!! JAVA What want from you: a full working code that does the job as indicated, no later that 11:59P

Use MatLab to solve this problem!!!!!

JAVA

Use MatLab to solve this problem!!!!! JAVA What want from you: afull working code that does the job as indicated, no later that11:59P on Saturday night. You are each responsible for you own code,some collaboration is permitted, but you must each turn in your own

What want from you: a full working code that does the job as indicated, no later that 11:59P on Saturday night. You are each responsible for you own code, some collaboration is permitted, but you must each turn in your own version. Some elements which will distinguish your version of this code from someone else's version are: comments, descriptions, variable/file names, methodologies (if you follow the plan we put in our outline, your methodologies won't differ, but if you make up your own plan to do the same job, it might!) PROBLEM: search through a given string to find a instances of a "forbidden word" and replace it with a "substitute word" I. Find a instances of a forbidden word Locate all places in our string where the first letter of our forbidden word occurred. Pair every char value in the string with a unique positive integer from 1 up to the length of the string 2. Use a mask to identify all locations ofthe first letter of our forbidden word and report that list of integers back to the user Determine which instances of that first letter also begin a word If first letter in string, keep it If not first letter in string, but is preceded by a space, keep it Otherwise discard it Return the modified list of integers representing only instances of first letter of forbidden word that ALSO begin a word to the user For each instance of first letter of forbidden word that also begins a word scan until a space is reached If any letter in that part of string differs from the sequence of letters in our forbidden word, stop scan and discard location Move to next location in list and begin scan again Stop when a locations have been scanned, keeping only those locations where a space is reached without triggering a discard ll. Replace forbidden word with substitute word Repeat for each instance of forbidden word beginning location given in the previous task Select the char values to replace

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!