Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I am not sure where i am supposed to use the Status_Txt part in my code, can anyone help me? A menu is generated using
I am not sure where i am supposed to use the Status_Txt part in my code, can anyone help me?
A menu is generated using the following code: Status-menu ClassStanding", 'Freshman, Sophomore, Junior, Senior), Write a segment of code using if-elseif-else that will classify the person making a menu selection as a new student (freshman) 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 C Reset MATLAB Documentation 1 %% Problem Statement . Write your problem statement here 31 % variables 4 % Sta 51 % status. Txt - string containing specified message corresponding to menu selection tus pre-defined menu output %% Inputs Uncomment variables in this section to test in Matlab, but leave commented out when testing in Cody 8 % Status-menu('Classstanding. ,' Freshman',' Sophomore',' Junior','Senior'); %% start writing your program here 11 % Define Constants 12 % Calculations 14 if Status-=1 15 fprintf'You are a new student) elseif Status=2 17 fprintf( You are a continuing student) 18elseif Status -3 fprintf(You are a continuing student') fprintf('You are a continuing student) fprintf( You did not make a selection') elseif Status-4 endStep 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