Question: Problem #2 Write a program in MATLAB that uses a switch-case statement to guide the student toward a career choice. The program will interact with
Problem #2
Write a program in MATLAB that uses a switch-case statement to guide the student toward a career choice. The program will interact with the user using input statement. For example:
Major = input(Enter 1 for Civil Engineering and enter 2 for Mechanical Engineering);
The switch-case statement will divide the students into Civil Engineering students and Mechanical Engineering students.
Within each case ask the student using input statement if he would consider one of the following career areas:
Civil Engineering
1- Construction Engineer
2- Water Resources Engineer
3- Environmental Engineer
4- General Civil Engineer
Mechanical Engineering 1- Mechanics Engineer
2- Thermodynamics Engineer 3- Robotics Engineer 4- General Mechanical Engineer
You may use another nested switch-case statement or if-elseif-else statement to select the students career. Once the student answers the question the computer will state the following
You will be an excellent ________________. Where the blank is one of the previous choices that is selected by the student. Submit the script as .m file
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
