Reference no: EM13803521
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:
? Enter the radius
? Display the area
? Display the circumference
? Exit
Other Requirements:
? Selecting choice 2 or 3 before entering the radius will result in an error message. The program will terminate only when Exit has been selected ?
Calculations will be done by functions.
Function circleInfo() will ask for the radius and will return it.
Function circleArea() will accept a parameter, the radius, and returns the area.
Function circleCircum() will accept a parameter, the radius, and returns the circumference.
? Results are displayed with 2 decimal place accuracy.
Partial Help with the menu:
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
Which class provides prebuilt dialog boxes
: Which class provides prebuilt dialog boxes that enable programs to display windows containing messages (such windows are called message dialogs)
|
What are the most important criticisms of boards of director
: The strategic management process is activated by Boards and their top management teams and they have a CSR responsibility strategy to create. They also need to be involved in social auditing and social performance reporting as these are critical aspe..
|
A security strategy involves risk assessment.
: A key part of designing a security strategy involves risk assessment. Our tolerance to risk determines what provisions need to be in place to keep our risk at a manageable level. What is the process to determine an acceptable level of risk and how do..
|
Analyze the key approaches that negotiation team should use
: Analyze the key approaches that your negotiation team should use in order to research both the government negotiators attending the negotiation session and the government's overall operations.
|
Find area and circumference of a circle
: 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: ? Enter the ..
|
Public schools are better socialized than home schooled
: Normal 0 false false false EN-US X-NONE X-NONE who attend public schools ar..
|
Implications for various stakeholders
: The presentation should conclude with supported specific recommendations as to how organisations and their accounting advisors should proceed in light of the analysis.
|
Appendix a for the grading rubric
: The key to this assignment is to demonstrate your understanding of the topics, not to re-word the text or reference material. Please see Appendix A for the grading rubric on all written assignments.Please complete the scenario below following these g..
|
Write summary of article the internet as a metaphor for god
: Write a summary of the article "The Internet As A Metaphor For God" by Charles Henderson. The virtual reality of religious life on the internet and discuss what you think are the potential positives and negatives of religion online.
|