Question: Use matlab This program will calculate the radius and area values for n circles given the circumference values. Write a script that will do the
This program will calculate the radius and area values for n circles given the circumference values. Write a script that will do the following: a. Call the function number. This function asks the user how many circles they have. Output of this functions is: n. b. Using a for loop, do the following n times: i. Ask the user to input the circumference of each circle ii. Call the function radius_area. Given the circumference, this function will calculate the radius and area of each circle. Output of this function are: radius and area. iii. Call the function printvalues. This function will print the radius and area values. Your statements should have the format shown below. Enter how many circles you have: >> 3 What is the circumference for the circle? The radius and area for circle 1 are 1.59 m and 7.96 m^2. What is the circumference for the circle? The radius and area for circle 2 are 0.48 m and 0.72 m^2. What is the circumference for the circle? The radius and area for circle 3 are 2.39 m and 17.90 m^2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
