Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

why is it wrong? Script Save CE 1 function calculate=myCalculate(radius, height) 3 disp 'Calculation using pi : 4 circumferenceWithPi-2 pi radius areaWithPi=(pi-radius^2) 6 volumeWithPi-areablithPi height

why is it wrong? image text in transcribed
image text in transcribed
Script Save CE 1 function calculate=myCalculate(radius, height) 3 disp 'Calculation using pi : 4 circumferenceWithPi-2 pi radius areaWithPi=(pi-radius^2) 6 volumeWithPi-areablithPi height 17 disp('') 8 19 disp Calculation using 3.14 10 circumference=2*3.14*radius 11 area=(3.14*radius^2) 12 volume=area height 13 disp(' ') 15 disp 'Difference between calculations : 16 circumDiff-circumferenceWithPi-circumference 17 areaDiff=areaWithPi-area 18 volumeDiff-volumeWithPi-volume disp(' ') 21 %on using "pi", the value of circumference, area, volume %turned out to be more accurate. It's value' has been increased by few decimal points end my Calculate(5,2) 25 myCalculate (10,4) my Calculate(20,8) SURI 50 s Error in solution: Line: 25 Column: 1 This statement is not inside any function. (It follows the END that terminates the definition of the function "myCalculate") You el s radius difference was incorrect. Make sure you are subtracting in the way indicated in the directions above, and that your are entered correctly * 10 meters Error in solution: Line: 25 Column: 1 This statement is not inside any function (It follows the END that terminates the definition of the function "my Calculate") Your 10m radius difference was incorrect. Make sure you are subtracting in the way indicated in the directions above, and that your equations are entered correctly

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

A Complete Guide To Data Science Essentials

Authors: Miguel

1st Edition

9358684992, 978-9358684995

More Books

Students also viewed these Databases questions

Question

To find integral of sin(logx) .

Answered: 1 week ago