import java.util.Scanner; public class Calculation { public static void main(String[] args) { // TODO Auto-generated method stub Scanner sc=new Scanner(System.in); System.out.println(\"Welcome to the Calcuation Program!\"); System.out.println(\"1. Area of a circle\"); System.out.println(\"2. Volume of a sphere\"); System.out.println(\"3. Volume of a cylindrical solid\"); System.out.println(\"4. Fahrenheit to Celsius conversion\"); System.out.print(\"Select a calculation:\"); int choice=sc.nextInt(); if(choice==1){ System.out.print(\"Enter the radius:\"); double rad=sc.nextDouble(); System.out.println(); System.out.printf(\"The area of the circle with radius %.2f units is %.2f units^2\",rad,Math.PI*rad*rad); } else if(choice==2){ System.out.print(\"Enter the radius:\"); double rad=sc.nextDouble(); System.out.println(); System.out.printf(\"The volume of sphere with radius %.2f units is %.2f units^3\",rad,(4*Math.PI*rad*rad*rad)/3); } else if(choice==3){ System.out.print(\"Enter the radius:\"); double rad=sc.nextDouble(); System.out.print(\"Enter the height:\"); double h=sc.nextDouble(); System.out.println(); System.out.printf(\"The volume of cylindrical solid with radius %.2f units and height %.2f units is %.2f units^3\",rad,h,Math.PI*rad*rad*h); } else if(choice==4){ System.out.print(\"Enter the temperature in Farenheit:\"); double temp=sc.nextDouble(); System.out.println(); System.out.printf(\"The temperature in Celsius is %.2f\",59*(temp-32)); } } } Solution import java.util.Scanner; public class Calculation { public static void main(String[] args) { // TODO Auto-generated method stub Scanner sc=new Scanner(System.in); System.out.println(\"Welcome to the Calcuation Program!\"); System.out.println(\"1. Area of a circle\"); System.out.println(\"2. Volume of a sphere\"); System.out.println(\"3. Volume of a cylindrical solid\"); System.out.println(\"4. Fahrenheit to Celsius conversion\"); System.out.print(\"Select a calculation:\"); int choice=sc.nextInt(); if(choice==1){ System.out.print(\"Enter the radius:\"); double rad=sc.nextDouble(); System.out.println(); System.out.printf(\"The area of the circle with radius %.2f units is %.2f units^2\",rad,Math.PI*rad*rad); } else if(choice==2){ System.out.print(\"Enter the radius:\"); double rad=sc.nextDouble(); System.out.println(); System.out.printf(\"The volume of sphere with radius %.2f units is %.2f units^3\",rad,(4*Math.PI*rad*rad*rad)/3); } else if(choice==3){ System.out.print(\"Enter the radius:\"); double rad=sc.nextDouble(); System.out.print(\"Enter the height:\"); double h=sc.nextDouble(); System.out.println(); System.out.printf(\"The volume of cylindrical solid with radius %.2f units and height %.2f units is %.2f units^3\",rad,h,Math.PI*rad*rad*h); } else if(choice==4){ System.out.print(\"Enter the temperature in Farenheit:\"); double temp=sc.nextDouble(); System.out.println(); System.out.printf(\"The temperature in Celsius is %.2f\",59*(temp-32)); } } }.