- Language Is Matlab Please Keep It Short Amp Concise And Be Available To Reply To Any Replies Pertaining To Your Code 1 (20.91 KiB) Viewed 42 times
Language is matlab! Please keep it short & concise, and be available to reply to any replies pertaining to your code
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Language is matlab! Please keep it short & concise, and be available to reply to any replies pertaining to your code
Write a function called reverse Words that receives as input a string in the form of a sentence, reverses the words in the sentence, applies proper capitalization of letters and punctuation, and returns the reversed sentence as output. You may assume that the first word of the input sentence begins with a Capital letter, that the sentence finishes with a single punctuation mark, and that no other punctuation marks are contained in the input sentence. Here are some examples of what calls to reverse Words might look like: >> reverseWords("Who are you?') ans = 'You are who?' >> reverseWords ('Sing to me Drew.'") ans = 'Drew me to sing.' >> reverse Words ("You love Matlab!") ans = 'Matlab love you!"