Question: rogram. Show the results to the TA. Each student upload the source file to Canvas Date: (0/1/2 points) TA Signature: 4. Chapter 3 (page 169):

rogram. Show the results to the TA. Each student upload the source file to Canvas Date: (0/1/2 points) TA Signature: 4. Chapter 3 (page 169): Problem 9 (modified) a. The name of this program will be lab3p4. b. Only the input quantity should be an integer. All others should be real. c. Change the goal of the program so that it computes the cost of producing closed top cylindrical containers. d. A sample run is shown below. COST OF MANUFACTURING CLOSED-TOP CYLINDERS Base diameter (cm): 6 Container height (cm): 8 Material cost ($/cm2): 0.009 Quantity: 1500 Surface area in cm^2 xxx.xx Production cost s , where xxx.xx and yyy.yy are appropriate output values. e. (i) Write the relevant formulas for surface area and production cost. (ii) Complete the hand calculation below. Diameter = 6 Height = 6 Material Cost = 0.009 Quantity = 1500 Production Cost = Surface Area = (iii) Write function proto-types for the two functions asked for in the problem. Also, write a third function that will display the two results, surface area and production cost. As part of your solution, call these 3 functions from setup(). Run the program. Show the results to the TA. Each student upload the source file to Canvas Date: (0/1/2 points) TA Signature: Page 4
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
