Question: 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?  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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!