Answered step by step
Verified Expert Solution
Question
1 Approved Answer
..ll stc KW LTE 2:58 AM @ 57% Done Lab9_b2a2537c4ad228e3a3c... Lab Exercise: Calculate 1-Write a script that shows the user the following menu: . If
..ll stc KW LTE 2:58 AM @ 57% Done Lab9_b2a2537c4ad228e3a3c... Lab Exercise: Calculate 1-Write a script that shows the user the following menu: . If the user selects the button (X), the script should print an error message. MATLAB Programming - Eng. Aisha Alkandari Circum Ex If the user selects the button (Area): The script should: 1- Ask the user to enter the radius 2- Call the function (getarea) which calculates the area of the circle then calls its subfunction (printarea) to print the result. If the user selects the button (Circum): The script should: 1- Ask the user to enter the radius 2- Call the function (getcircum) which calculates the circumference of the circle then calls its subfunction (printcircum) to print the result. If the user selects the button (Exit), the program stops. There should be one script and two functions with a subfunction for each) to calculate and print the result Command Window X MO Please select one option from the menu Error Please select one option from the menu Enter the raduis: 5 Area of circle = 78.54 Calculate Area Circum Please select one option from the menu Enter the raduis: 5 Circumference of circle = 31.42 Exit Please select one option from the menu x MATLAB Programming - Eng. Aisha Alkandari Page 3
Step 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