4. The volume of a sphere is (4.0/3.0)rr3 and the surface area is 4.0rr2, where r is the radius of
the sphere. Given the radius, design an algorithm that computes the volume and surface area of
the sphere. (You may assume that T-3.141592) (Exercise#17)


Sagot :

An algorithm that computes the volume and surface area of this sphere include:

  1. Get the radius.
  2. Calculate the volume.
  3. Calculate the surface area.

What is an algorithm?

An algorithm is a standard formula which comprises a set of finite steps and instructions that must be executed in order to proffer solutions to a problem on a computer, under appropriate conditions.

For this exercise, an algorithm that computes the volume and surface area of this sphere is as follows:

  1. Get the radius.
  2. Calculate the volume.
  3. Calculate the surface area.

Read more on algorithm here: brainly.com/question/24793921

$SPJ1