Program Requirements: 85pts. Write a program that prompts the user to select either a circle, cube/rectangular prism, or
Posted: Tue Jul 12, 2022 8:28 am
- Must print out a "header" to the user displaying information about what the program does. - Prompt the user to choose a shape and store their choice as a variable. - Use either "if -else" statements or a "switch" statement to evaluate the user's choice and then prompt for the necessary dimensions of the selected shape. If the user enters a non-valid shape display a message saying so and exit the program. - With the entered shapes dimensions calculate the necessary calculation needed to be displayed based on the information above. - For the circle and sphere, either prompt the user to enter a radius or randomly generate one. - For the circle and sphere calculation, Pi, π, should be utilized with the Math class's PI constant. - The programs output should neatly display the shapes entered dimensions and the required information from above. Extra Credit: 5pts. Round final calculations to 4 decimal places.