Convert the following switch into a functionally identical i…
Convert the following switch into a functionally identical if/elseif/else by arranging the provided lines of code in the correct order. Many of the lines will NOT be used. You’ve just gotten into comics and are about to call someone out on TikTok for failing to know the difference between a “hero” and a “superhero”, but don’t want to make the same mistake. You searched Reddit and found an algorithm to help you decide which word to use but your MATLAB is broken and doesn’t allow for the use of switch. You need to convert this algorithm quick so you can turn on the burner and flame this fool. Rearrange the lettered lines of code to create a block of code that is functionally identical to the following: switch ability case ‘utility belt’ type = ‘hero’ case {‘flying’, ‘teleportation’} type = ‘superhero’ otherwise type = ‘civilian’ end Available lines to rearrange… A – ability = ‘flying’ B – ability = ‘utility belt’ C – else D – end E – if isequal(ability, ‘flying’) & isequal(ability, ‘teleportation’) F – elseif isequal(type, ‘civilian’) G – if isequal(ability, ‘flying’, ‘teleportation’) H – type = ‘civilian’ I – if isequal(type, ‘superhero’) J – ability = ‘teleportation’ K – if isequal(ability, ‘utility belt’) L – type = ‘other’ M – type = ‘hero’ N – type = ‘superhero’ O – elseif isequal(type, ‘hero’) P – elseif isequal(ability, ‘utility belt’) Q – if isequal(ability, ‘teleportation’) | isequal(ability, ‘flying’) Show your answer by typing the letters that proceed your line choices in the appropriate order in the space provided below. Your answer should be a sequence of letters such as AGFLKNEM. Not all lines will be used.