How to compute surface area of an object?
Write a program that computes the surface area of an object. The user will choose a circle, rectangle or triangle. The program will prompt the user for the values needed (radius, 2 sides or base & height), then show the answer.
Requirements:
€ include one function to describe what the program is for (to be shown to the user when the program first runs)
€ use one function for input the shape desired (‘c’ ‘r’ or ‘t’)
€ set up one function for each type of computation (one function for area of a circle, one function for area of a rectangle and one function for area of a square)
€ include one function for output of the answer