Question: No Iterations or Conditionals or find() function MATLAB Funntion: stringscore Input: (1xN char) A vector of chars Output: (double) The score of the string as

No Iterations or Conditionals or find() function MATLAB

No Iterations or Conditionals or find() function MATLAB Funntion: stringscore Input: (1xN

Funntion: stringscore Input: (1xN char) A vector of chars Output: (double) The score of the string as determined by the criteria below Function Description: You are given a string and need to write a function that determines its score based on the criteria listed below. - +5 points if the length of the string is even - 3 points if the length of the string is odd - +10 points if the length of the string is evenly divisible by the number of spaces in the string - +7 points if at least 5% of the letters in the string are capitalized - +50 points if after making all letters the same case and removing the spaces the string is a palindrome (same forward as it is backwards) Note(s): - The input string will only contain letters (upper and lower) and spaces. (No numbers or punctuations.) - Iteration and Conditionals are banned - The find() function is banned Hints: - Multiplying by a logical automatically casts it into a double (ex: false 0, true >1 ) Examples: str1 = 'Taco Cat

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!