# Answered! The potentially assignment consists of multiple submission of equation. You are responsible to do each submission…

Here is the solution of the given criteria, please go through it throughly

Part 1:-  Please run these codes into your MATLAB window and check out the output

a = input(‘Enter the first nubmer : ‘); % This command is used to enter the input
b = input(‘Enter the second nubmer : ‘); % This command is used to enter the input
fprintf(‘nYour option is n1.Additionn2.Subtractionn3.Multiplicationn4.Divisionn5.Division with Remaindern’) % This command is used to print the options
var= input(‘Please enter the your option :’); % This command is used to enter the input
switch var %Here switch statement is used
case 1
c=a+b;
fprintf(‘nAddition of entered number is : %d’,c );
case 2
c=a-b;
fprintf(‘nSubtraction of entered number is : %d’,c );
case 3
c=a*b;
fprintf(‘nMultiplication of entered number is : %d’,c );
case 4
c=a/b;
fprintf(‘nDivision of entered number is : %d’,c );
case 5
c=mod(a,b);
fprintf(‘nDivision with remainder of entered number is : %d’,c );
otherwise
fprintf(‘nInvalid option’ );
end

Don't use plagiarized sources. Get Your Custom Essay on
Answered! The potentially assignment consists of multiple submission of equation. You are responsible to do each submission…
GET AN ESSAY WRITTEN FOR YOU FROM AS LOW AS \$13/PAGE

Please check out it the output shown below:-