/* Name * CSE Account # */ import java.io.PrintStream; import java.util.Scanner; public class Spheres { public static void main(String[] args) { PrintStream output = System.out; Scanner input = new Scanner(System.in); output.print("Total volume of liquid (in meteres cubed): "); double vTotal = input.nextDouble(); output.print("Volume of each container (in meters cubed): "); double vContainer = input.nextDouble(); int nContainer = (int) Math.ceil(vTotal / vContainer); final double C = 3.0 / 4.0 / Math.PI; double radius = Math.cbrt(C * vContainer); double length = 2.0 * nContainer * radius; output.printf("The length of the containers is: %.2f meters%n", length); } }