Question: Write a Boolean function called isConsecutive that looks at a string scalar, and then determine if the string has letters occurring consecutively. The input string
Write a Boolean function called isConsecutive that looks at a string scalar, and then determine if the string has letters occurring consecutively. The input string could be any length. The function should also determine the number of alphanumerics and letters in the string. Restrictions: The function should use the internal function istprop. Hint: The break statement should be used.



Are the letters consecutive? Write a Boolean function called isConsecutive that looks at a string scalar, and then determine if the string has letters occurring consecutively. The input string could be any length. The function should also determine the number of alphanumerics and letters in the string. Restrictions: The function should use the internal function istprop Hint The break statement should be used. Ex: [consecutiveLetters, numberCharacters, numberLet ters] 1sConsecutive ( string) string-..123", string = = "123" consecutiveLetters logical numberCharacters = numberLetters = Ex: [consecutiveLet ters, numberCharacters, numberLetters] isconsecutive (string) >> string-"Josh2a", string = Josh2a consecutiveLetters logical numberCharacters = numberLetters- Ex
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
