Question: question 7 and 8 Note that the variable used at the command line has the name SRadius, while that in the function is Radius. Why

question 7 and 8
 question 7 and 8 Note that the variable used at the

Note that the variable used at the command line has the name SRadius, while that in the function is Radius. Why does it not matter that these variables have different names? When octave is assigned a variable to sticks to that variable throughout the whole function till it ends atheist why it is important to chose wisely. 5. Write and save a function Sphere Area that accepts Radius as input argument, and returns SurfaceArea (4 r2) as output argument. Paste the function code below. def SphereArea ( ): return (4*22*r*r)/7 print (Sphere Area (5)) 6. Validate your Sphere Area function from the command line, checking the results against hand calculations. Paste the command line code and results below. SA=Sphere Area(2) 7. Design an algorithm in pseudocode for a program (script file) that will prompt a user for the radius value, call each of the functions, and then output the values of surface area, volume, and surface to volume ratio (all formatted to 2 decimal places). 8. Program your algorithm, and paste the code for the main program below. Your program must contain the lines of code indicated below, exactly as written

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!