Question: Using MATLAB programming. Also Can you indicate what will go in the command window and what will go in the script window. Thanks Now it's
Now it's your turn. Write a function that identifies arachnids (the class of animals that contains the spiders) using the decision structure below. You can name your function whatever you like, but you should name it something informative, such as classify arachnid. Your function will consist of one giant if elseif-else block, inside of which will be some nested if else blocks. The function should take no arguments, but should prompt the user for input. The user should be asked no more than 5 questions, and should only be asked questions which are relevant to identifying the particular arachnid. That is, ifthe user answers NO to question 1, donot ask them question 2. Your function should retum a string containing the name of the order to which the arachnid belongs. ing Arachnids 1. Has a tail or a stinger? a. YES, go to Question #2 b. No, go to Question #3 2. Tail is straight like a needle? a. YES, order Uropy gi (whipscorpions) b. No, order Scorpiones (scorpions) 3. Has claws? a. YES, go to Question #4 b. No, go to Question #5 4. Is less than 5mm long and is flat? a. YES, Order Pseudoscorpiones b. No, Order Amblypygi 5. Has thin, stilt like legs with high knees and a low body? a. YES, Order Opiliones Charvestmen) b. No, go to Question #6 6. Body is oval-shaped and lacks a waist? a. YES, Order Acari (ticks and mites b. No, go to Question #7 longer than the rest? 7. Has 7 segments on each leg and the 1st pair are not a. YES, Order Araneae (spiders) b. No, Order Solifugae (windscorpions) tha nert naga Use your function to
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
