Question
h =V/(π r * r)
C = 2πr(r + h)
Solution Preview
This material may consist of step-by-step explanations on how to solve a problem or examples of proper writing, including the use of citations, references, bibliographies, and formatting. This material is made available for the sole purpose of studying and learning - misuse is strictly forbidden.
import java.util.Scanner;public class Container{
public static void main(String[] args){
Scanner in = new Scanner(System.in);
System.out.print("Please enter the volume of the cylinder or 0 to exit: ");
double volume = in.nextDouble();
System.out.print("Please enter the radius of the cylinder or 0 to exit: ");
double radius = in.nextDouble();
while (volume > 0 && radius > 0) {
double height = volume / (Math.PI * Math.pow(radius, 2));...