Question: MATLAB PROBLEM Function Name: awardSeason Inputs: 1. (char) a string containing the name of Player A 2. (char) a string containing the name of Player
MATLAB PROBLEM



Function Name: awardSeason Inputs: 1. (char) a string containing the name of Player A 2. (char) a string containing the name of Player B Outputs: 1. (char) a sentence stating who won the Ballon d'Or award Topics: (switch conditionals), (nested conditionals) Background: You are an esteemed writer for ESPN and have been matched to cover the odds of who is winning the Ballon d'Or based on particular matchups for the finalists. This year is a little strange. They are only doing two finalists, it isn't separated by gender, and there is someone that doesn't even play soccer in the running. You are a little too lazy to write up the headlines, so you decide to write a MATLAB function that will write up what's occurring for you. Function Description: Write a function that will take in two player name inputs (player A and player B) and output the desired string according to the matchup. The only possible inputs for this function are 'Ronaldo' 'Solo' 'Messi' 'Kane' 'Wambach' 'Paul Johnson' Format the output string depending on the outcome defined by the diagram below. If one of the players wins, output: '
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
