Question: Write a program that will take two inputs of an integer and one input of a character. Depends upon the character it should do certain

Write a program that will take two inputs of an integer and one input of a character.
Depends upon the character it should do certain operations like a for addition, s for
subtraction, m for multiplication and d for division. If you give any other character,
you should display an error message like Invalid Operation using otherwise clause.
Note: you need to use switch clause for this Question.
Ex:
Input:
Enter your first number: 5
Enter your second number: 6
Enter your character operation: m
Output:
The output of certain operation is 30
Using MATLAB please. Thank you

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!