Text: Q1
Answer Q1(a)-Q1(b) using Java based on the formulas for calculating the volume of the shapes given in FIGURE Q1.
Volume of a cylinder: Volume = πr^2h
Volume of a cuboid: Volume = length x width x height
where π is Math.PI, r is the radius, h is the height
FIGURE Q1
(a)
Write a class named Volume that has two (2) overloaded static methods for calculating the volume of two (2) 3D shapes: cylinder and cuboid. Implement the methods in a complete class. (9 marks)