Write a C++ program that will display a menu similar to the one shown here:
1. Cube
2. Rectangular Prism
3. Sphere
4. Cone
5. Cyliner
6. Quit
The user will choose a shape (or quit) from the menu. Your program will prompt the user for the appropriate dimensions of the shape and display the surface area and volume of the shape, then return back to the menu.
Structurally, each shape must have one function to calculate the surface area and another to calculate the volume.
When inputting the dimensions for a shape, your program must enforce the rule that a dimension cannot be less than zero. Also check your valid input (cin.fail()) and allow the user to reenter bad data.