C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter5: Repetition Statements
Section5.4: For Loops
Problem 12E
icon
Related questions
Question
In C language
Q.1 - 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 (nr2 +2nrh). Write a program to read the
radius of the base r, the height of the container h, the cost per square
centimeter of the material (cost) and
the number of containers to be produced (Quantity) from the user. You
should calculate
the cost of each container and the total cost of producing all the
containers and print
the results on screen
Transcribed Image Text:Q.1 - 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 (nr2 +2nrh). Write a program to read the radius of the base r, the height of the container h, the cost per square centimeter of the material (cost) and the number of containers to be produced (Quantity) from the user. You should calculate the cost of each container and the total cost of producing all the containers and print the results on screen
Expert Solution
steps

Step by step

Solved in 2 steps with 13 images

Blurred answer
Knowledge Booster
Fundamentals of Boolean Algebra and Digital Logics
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr