This program should import program5_2 as a module. The main function should prompt the user for the radius (as a float) and execute the imported functions. Outputs should display the same number of decimals as program5_2.py.

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter6: Using Arrays
Section: Chapter Questions
Problem 2CP
icon
Related questions
Question

This file requires a main function and two custom functions about circles. Both functions take the radius of a circle as an argument. One function returns the area of the circle. The other void function prints the circumference of a circle to three decimal places. The main function should prompt the user for the radius (as a float) and execute the custom functions. The value returned by the area function should be printed accurate to four decimal places. Use the math module to get the value of pi.
Sample Output

program5_3.py
This program should import program5_2 as a module. The main function should prompt the user for the radius (as a float) and execute the imported functions. Outputs should display the same number of decimals as program5_2.py. 

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Follow-up Questions
Read through expert solutions to related follow-up questions below.
Follow-up Question

Where is the void function for circumference

Solution
Bartleby Expert
SEE SOLUTION
Knowledge Booster
Types of Function
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,