functions

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sala
    New Member
    • Nov 2006
    • 12

    #1

    functions

    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
  • dav3
    New Member
    • Nov 2006
    • 94

    #2
    im brand spankin new to this community but I believe you're at least supposed to try your problem and post the code you are having trouble with. Post what you have and I will see if I can offer any advice.

    Comment

    Working...