Java program that prompts the user to enter the base and slant height for a regular pyramid shape, then calculates and outputs its volume and surface area. A and B are requirements
A It is required to use JOptionPane's Input Dialog and Message Dialog for input and output.
B The user inputs need to be validated. Print an error message if they are not valid.