Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I am not sure what i did wrong and why i am not getting the checks correct on the work. | A menu is generated
I am not sure what i did wrong and why i am not getting the checks correct on the work.
| A menu is generated using the tollowing code: Status-menuClassStanding', Freshman, 3ophomore', Junior, Senior' Wite a segment of code using it-elseit-else that will classity the person making a menu selection as a new student (treshman) or a continuing student (sophomore, junior, or senior). The code should save one of the following messages in the variable Status_Txt You are a new student. You are a continuing student. You did not make a selection. Your Script Reset MATLAB Documentation problen Statement- rite your problen st tenent here % variables % Status - pre-defined menu output % status-xt -string containing specified nes sage corresponding to nenu selection Inputs- Unconment variables in this section to test in Matlab, but leave conmented out when testing % status-renu('classstanding','Freshnan',' Sophonore Junior.,'senior'); in Cody start writing your proeran here % Define Constants % Calculations if Status--1 elseif Status -2 clseif Status--3 status_Txt-'You are a new student' Status Txt-'You are a continuine student' status. Txts'You are continuing student elseif 5totus--4 21 Status_Txt-You are a continuing student' tus-Txt. "You did not neke selection'; st end Previous Assessment: Incorrect Submit X Test 1 You have not or incorectly, accounted for the Freshman selection. Incorrect spelling or punctuation could be a problem X Test 2 You have not, ar Incorrectly accounted for no selection being made. Incorrec spelling or punctuation could be aStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started