i am supposed to write a program :
A manufacturer wishes to determine the cost of producing an open-top cylinder container. The surface area of the container is the sum of the area of the circular base plus the area of the outside (the circumference of the base time the height of the container).
Write a function that computes (returns) the cost of building a container given a certain cost value (cost in dirhams per centimeter²)
You have to guess the input arguments for the function
- Call your function from a main program (write a complete program)
- Your program should execute iteratively till a Sentinel value is typed
A manufacturer wishes to determine the cost of producing an open-top cylinder container. The surface area of the container is the sum of the area of the circular base plus the area of the outside (the circumference of the base time the height of the container).
Write a function that computes (returns) the cost of building a container given a certain cost value (cost in dirhams per centimeter²)
You have to guess the input arguments for the function
- Call your function from a main program (write a complete program)
- Your program should execute iteratively till a Sentinel value is typed
Comment