1. The problem statement, all variables and given/known data Using the switch-case construction, write code that take a variable named Shape containing a string and assigns to the variable numSides the number of sides of the shape named in the variable Shape. Your code should be able to return the number of sides for a triangle, square, pentagon, hexagon, heptagon, or octagon. If the variable Shape contains a string that is not listed above, assign NaN to the variable numSides and display one of the following two warnings: If the string stored in Shape ends in `gon', you should display the following warning: "I don't know how many sides a <string stored in Shape> has.". If the string stored in Shape does not end in `gon', your code should display the following warning: "I don't know what a <string stored in Shape> is.". 2. Relevant equations 3. The attempt at a solution I am stuck about how to enter in the error messages, here is what I have working so far. Code (Text): switch Shape case 'triangle' numSides = 3; case 'square' numSides = 4; case 'pentagon' numSides = 5; case 'hexagon' numSides = 6; case 'heptagon' numSides = 7; case 'octagon' numSides = 8; otherwise numSides = NaN; end This is how I have been trying to implement an error message Code (Text): if numSides = NaN error = 1; if error disp( 'I don''t know how many sides a <string stored in Shape> has.') Of course this is wrong. There are two problems here for me. First, I don't know how to make an error message for two separate errors. Secondly, I don't know how to insert the string into the error message. Thank you.