Create a class called Shapes that has a private int field named radius and the proper get- and set- methods (according to our Java coding standards).
Create a constructor that takes an integer as a parameter to initialize the radius.
Create a void method called report() that generates the work (output) indicated (below).
Create a public static void main(String[] args) method that: Prompts the user to enter a single integer to be used as the radius of a circle, and also of a sphere, and as the distance from the center to a corner of a square and the same of a cube (the user will only input one number, and you will use that number for all of the above).
Instantiates a Shapes object with the integer returned from the keyboard by the user (as indicated above - only one radius to create only one Shapes object).
Runs the report() method of the Shapes object reference it instantiated (above).
The report() method should output the perimeter and area of the circle, the volume of the sphere, and the perimeter and area of the square produced from the "radius" (of the bounding circle or sphere) with the indicated size (see the example, below). Note that for the square, the "radius" is the measurement from the center to one of its corners.
Some mathematical equations that will help you are as follows:
The perimeter of a circle is: 2 x π x r
The area of a circle is: π x r2