Write a program that evaluates the volume and surface area of a sphere of
radius 11.2cm.
Volume of a sphere: (4/3)πr³
Surface area of a sphere: 4πr².
A java programme can be written in many different ways, depending on what you've learned so far, just like a composition, there can be thousands of ways to make a composition of one single title.
For more help, post what you've got so far, and specify the part where help is needed.
To write a program that evaluates the volume and surface area of a sphere of radius 11.2 cm, you can use the following steps:
1. Declare a constant variable for the radius with a value of 11.2 cm.
2. Calculate the volume of the sphere using the formula: V = (4/3) * π * r^3, where π is a mathematical constant approximately equal to 3.14159.
3. Calculate the surface area of the sphere using the formula: A = 4 * π * r^2.
4. Print the calculated volume and surface area of the sphere.
Here is an example program in Python:
```python
import math
radius = 11.2
volume = (4/3) * math.pi * radius**3
surface_area = 4 * math.pi * radius**2
print("Volume of the sphere:", volume, "cm^3")
print("Surface area of the sphere:", surface_area, "cm^2")
```
When you run this program, it will output the volume and surface area of the sphere with a radius of 11.2 cm.