Question: Problem One For loop with if/else Use MATLAB to solve the example problem starting on slide 12 of the MATLAB08 class slides. You must create
Problem One For loop with if/else Use MATLAB to solve the example problem starting on slide 12 of the MATLAB08 class slides. You must create a full solution with proper documentation and comments. You solution will not include the find instruction, but will use a for loop and if/else structure. Your solution script must include: Create a variable for the height of the applicants. Use the heights listed in the example problem. Create a variable to keep track of the number of acceptable applicants A for loop that will step through each height, one at a time. Each time through the loop, you must: o Display the height o Determine if the height is at least 5'6" tall. If so, display 'Acceptable' and increment the acceptable count, if not display 'Decline Once the loop exits, display the count of acceptable applicants
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
