Question: Need matlab help Homework 7 Iteration Function Name: scrabbleScore Inputs: 1. (double) A 1xN vector of your word scores 2. (double) A 1xM vector of
Need matlab help
Homework 7 Iteration Function Name: scrabbleScore Inputs: 1. (double) A 1xN vector of your word scores 2. (double) A 1xM vector of your opponents word scores Outputs: 1. (char) A string describing the outcome of the game Banned Functions: sum(), cumsum(), mean() Function Description: You and your friend just completed an intense game of scrabble. The scores were neck and neck, but now that the game has ended, you have to determine a winner. The worst part of any scrabble game is adding up the scores in the end, but with your newfound coding knowledge, you can use MATLAB to sum up the scores for you! Given two vectors of scores for each word played by you and your opponent throughout a scrabble game, write a function called scrabbleScore() that totals up your and your opponent's score and determines which player won. If your final score is greater, output: 'I am the Scrabble champion!' If however, your opponent's score was greater, output: "Beginner's luck. .. If the scores were equal, output: 'I challenge you to a rematch
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
