Suppose that you work for a beverage company. The company wants to know the optimal cost for a cylindrical container that holds a specified volume. Write a program will ask the user to input the volume and radius of the cylinder . Then the program will call a function to compute and return to main the height and cost of the cylindrical container . (Use call by reference syntax for the function call). At the end the program should output the height of the cylinder, and the cost of the cylindrical container . Use the following formulas, where V is the volume, R is the radius, H is the height, and C is the cost of the cylindrical container. H =V / (PI * R2) C = 2*PI*R*(R + H) Note: PI=3.14159
Suppose that you work for a beverage company. The company wants to know the optimal cost for a cylindrical container that holds a specified volume. Write a program will ask the user to input the volume and radius of the cylinder . Then the program will call a function to compute and return to main the height and cost of the cylindrical container . (Use call by reference syntax for the function call). At the end the program should output the height of the cylinder, and the cost of the cylindrical container . Use the following formulas, where V is the volume, R is the radius, H is the height, and C is the cost of the cylindrical container. H =V / (PI * R2) C = 2*PI*R*(R + H) Note: PI=3.14159
Physical Chemistry
2nd Edition
ISBN:9781133958437
Author:Ball, David W. (david Warren), BAER, Tomas
Publisher:Ball, David W. (david Warren), BAER, Tomas
Chapter9: Pre-quantum Mechanics
Section: Chapter Questions
Problem 9.4E
Related questions
Question
Suppose that you work for a beverage company. The company wants to know the optimal cost for a cylindrical container that holds a specified volume. Write a program will ask the user to input the volume and radius of the cylinder . Then the program will call a function to compute and return to main the height and cost of the cylindrical container . (Use call by reference syntax for the function call).
At the end the program should output the height of the cylinder, and the cost of the cylindrical container .
Use the following formulas, where V is the volume, R is the radius, H is the height, and C is the cost of the cylindrical container.
H =V / (PI * R2)
C = 2*PI*R*(R + H)
Note: PI=3.14159
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, chemistry and related others by exploring similar questions and additional content below.Recommended textbooks for you
Physical Chemistry
Chemistry
ISBN:
9781133958437
Author:
Ball, David W. (david Warren), BAER, Tomas
Publisher:
Wadsworth Cengage Learning,
Physical Chemistry
Chemistry
ISBN:
9781133958437
Author:
Ball, David W. (david Warren), BAER, Tomas
Publisher:
Wadsworth Cengage Learning,