I was given a project to complete, it is as follows:
A manufacturer wishes to determine the cost of producing an open-top cylindrical container. The surface area of the container is the sum of the area of the circular base plus the area of the outside (base circumference * height of container). Write a program that takes the radius of the base, the height of the container, the cost per square centimeter of material, and the number of containers to be produced. Calculate and report the cost of each container and the total cost of producing all the containers. Instructions to the user AND calculation of surface area MUST be in custom and separate functions.
How do I go about creating the separate and custom functions for this? Thank you.