Write definitions for these functions: sphereArea(radius) Returns the surface area of a sphere having the given radius. sphereVolume(radius) Returns the volume of a sphere having the given radius. Use your functions to solve Programming Exercise 1 from Chapter 3.
Added by John Q.
Close
Step 1
```python import math def sphereArea(radius): return 4 * math.pi * radius**2 ``` Show more…
Show all steps
Your feedback will help us improve your experience
Lien Le and 92 other AP CS educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
Using Python: Write a function area_of_circle(r) that asks the user for a radius r and returns the area of a circle of radius r. Hint: The area of the circle is A = πr^2.
Liam H.
Write a program in Python to calculate and print the circumference and area of a circle
Haricharan G.
For the following exercises, determine the function described and then use it to answer the question. The surface area, $A$ , of a sphere in terms of its radius, $r,$ is given by $A(r)=4 \pi r^{2} .$ Express $r$ as a function of $V,$ and find the radius of a sphere with a surface area of 1000 square inches.
Polynomial and Rational Functions
Inverses and Radical Functions
Recommended Textbooks
Computer Science and Information Technology
Introduction to Programming Using Python
Computer Science - An Overview
Watch the video solution with this free unlock.
EMAIL
PASSWORD