Question: MATLAB Function Name: vineConpilation Inputs: 1. (chan The first vine quote 2. (chan The second ine quote Outputs: 1 (chan A complilation of the vines

MATLAB Function Name: vineConpilation Inputs: 1. (chan The first vine quote 2. (chan The second ine quote Outputs: 1 (chan A "complilation" of the vines Background: It's Sunday aftemoon and you're hanging out in your lounge, finishing of your Sprite Cranberry. Your Mom Friend (Jared, 19) walks in and yells at you for drinking soda for breakfast. Aggravated, you YEET the empty can down the hall as Jared drags you to he kitchen to make breakfast. You open the fridge to find some tortillas, eggs, and wow! Look at all hat chicken! Jared says he could make the perfect breakfast tacos if he only had some tre sha voca do. You guys get your fre sha voca dos and Jared makes you some scrumptious breaktast tacos. To repay him, you make him a compllation of his favorite vines, with a litie help from your friend MATLAB! Glven two string Inputs, swap the first and second halves of the first Input and sort the second Input in reverse alphabetical order. Then, "comple the two strings by Inserting the first string Into the odd Indices of the output, and the second string Into the even Indices of the output it one string s longer than the other, add exclamation points to the end of the shorter string so the strings are the same length. Example: This can empty compilation vineCompilation(vinel, vine2) vine! ' pty. YEET! This can en vine2 Notes: lf the nrst string's length is an odd number, spit half being longer than the second, then swap them into two unequal halves with the first Hints: The sort)function can take in two parameters The ceil() function may be useful
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
