What are the different methods to calculate the volume of a prism or cylinder?