1. Write a Matlab program that will allow the user to find area and circumferenc
ID: 3545493 • Letter: 1
Question
1. Write a Matlab program that will allow the user to find area and circumference of a circle. Selections and data entry will be done by presenting the user with a menu (using menu function) and provide her/him with the following choices:
Other Requirements:
2. Write a Matlab program that will allow the user to enter the coefficients of a polynomial and make some calculations. Selections and data entry will be done by presenting the user with a menu (using menu function) and provide her/him with the following choices:
Other Requirements:
Explanation / Answer
flag =0;
%Calculation
while (1)
choice=menu('Circle and Cylinder', 'Enter the radius','Display the area', 'Display the circumference','Exit');
switch(choice)
case 1
r=circleInfo();
flag=1;
case 2
if (flag==0)
disp('you need to enter the radius first');
else
area=circleArea(r);
end
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.