Question: Enter and execute the program. Verify your answer to question ' c ' by changing the variable name in the main function from radius to
Enter and execute the program. Verify your answer to question by changing the variable name in the main function from radius to number. Do not change the parameter variable name in the function definition. Does the program still work?
Write a line of code that calis the calculateArea function and sends the value as the argument. Add the line of code to the main program and execute it to be sure it works properly.
Add another function to the program that calculates and prints the diameter of a circle, given the radius as the parameter. Place the function definition above call to the main function of the program. Write the function below:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
