Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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 end

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases And Information Systems 1 International Baltic Conference Dbandis 2020 Tallinn Estonia June 19 2020 Proceedings

Authors: Tarmo Robal ,Hele-Mai Haav ,Jaan Penjam ,Raimundas Matulevicius

1st Edition

303057671X, 978-3030576714

More Books

Students also viewed these Databases questions

Question

why we face Listening Challenges?

Answered: 1 week ago

Question

what is Listening in Context?

Answered: 1 week ago