Write a program that ask the user to select one of the three geometric shapes, a cylinder, box, or sphere and to enter size information for that item. The program then calculates the volume and surface area for the items by using CalculateVolume and CalculateSurfaceArea functions. *Your program should declare variables for volume, surface area, radius, height, length, and width. Devise a method so that you know which shape (cylinder, box, sphere) the user has chosen. Document this scheme in your program. Using a GetShape function, ask the user to select an item and ask for pertinent.
help??? please! Write a program that ask the user to select one of the three geometric shapes, a cylinder, box, or sphere and to enter size information for that item. The program then calculates the volume and surface area for the items by using CalculateVolume and CalculateSurfaceArea functions. *Your program should declare variables for volume, surface area, radius, height, length, and width. Devise a method so that you know which shape (cylinder, box, sphere) the user has chosen. Document this scheme in your program. Using a GetShape function, ask the user to select an item and ask for pertinent. If the data is valid call CalculateVolume and CalculateSurfaceArea. *The tree overloaded volume and three overloaded surface area functions should all have the same name but different prototypes, depending on which shape property the function is calculating . For example, the overloaded Calculate volume function for a box has three inputs, whereas the sphere has only one. *Use the overloaded function called WriteResult to report the calculate values for your shape. There will be three WriteResults function. additional program requirements: initialize the value to 3.141592 use a reference variable to pass the shape structure to the GetShape function the GetShape function should error-trap for any invalid shape choice. Help, this is due to this morning for class..i did most of it already i just want to see a proper working version
Join our real-time social learning platform and learn together with your friends!