2
$\begingroup$

I'm a computer science major, and I was asked to write a program with the following question.

A manufacturer wishes to compare the cost of producing an open-top cylindrical container and an open-top rectangular container.

For the cylindrical container:

  • The area of the base is the area of a circle = $\pi r^{2}$.
  • To calculate the area of the container's side, imagine unwrapping the side into a rectangle so the area of the side is the circle circumference times the container height.
  • The circumference of a circle = $2\pi r$

For the rectangular container:

  • The base is square, and each side is equal to the given diameter.
  • To calculate the area of the container's side, you have four rectangles with length and diameter with specified height.

Write and test a program that asks for the following inputs, in order:

  • the diameter of the base (cm)
  • the height of the container (cm)
  • the cost of the material ($ per square cm)
  • number of containers to produce

I would just like to know what equations I would need to find the surface area of the open top rectangular container.

$\endgroup$
  • $\begingroup$ Delete your previous post/question. This one is much better. $\endgroup$ – 关一骏 Oct 8 '16 at 1:18
  • $\begingroup$ Also, what exactly is this "area"? I'm really confused. Are you talking about the area of the missing lid? Or are you talking about surface area (SA)? $\endgroup$ – 关一骏 Oct 8 '16 at 1:35
  • $\begingroup$ sorry, i mean't surface area $\endgroup$ – Tevin Oct 8 '16 at 1:39
  • $\begingroup$ OH—that makes so much more sense! $\endgroup$ – 关一骏 Oct 8 '16 at 1:40
0
$\begingroup$

The following is the process to find the surface area of rectangular box with its top side missing.

Let's call the side of the square base $s$ and let's call the height of the prism $h$.

Normally you have 6 sides. However, now you only have 5.

You have 4 sides of area $hs$ and one base of area $s^{2}$.

Therefore, $SA = hs + s^{2}$.

Feel free to plug in the given values.

The following is the process to find the surface area of cylinder with its top side missing.

Let's call the diameter of the circle base $D$ and let's call the height of the prism $h$.

The lateral surface area is $\frac{D}{2} h \pi$. The area of the base is the area of a circle: $\pi r^{2}$. Adding these two expressions, the surface area is $\frac{D}{2} h \pi + \pi r^{2}$.

$\endgroup$
  • $\begingroup$ thanks man, really appreciate it, just out of curiosity, what would be the formula for finding the SA of the opened top cylindrical container? $\endgroup$ – Tevin Oct 8 '16 at 2:06
  • $\begingroup$ Hey—I'll edit my response to include that. Can you accept my answer and unvote? Thank you! $\endgroup$ – 关一骏 Oct 8 '16 at 2:10
  • $\begingroup$ alright, just did $\endgroup$ – Tevin Oct 8 '16 at 2:12
0
$\begingroup$

It seems they are asking you to calculate the surface area of the two containers, which don't have lids. So, for each one you'd calculate the area of the bottom, then the area of the outer sides. For the circular one, imagine slicing the tube down the side and unrolling it. It would have an area of the height times the circumference of the bottom circle. Likewise the area of the other is the area of the square bottom, plus the area of the four walls. Here it sounds like the width of each wall is supposed to be the same as the diameter of the other container. You've stated all the equations above, so just calculate the area of each; the cost per container would be the area times the cost of the material; and the total cost would be the cost per unit times the number of units made.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.