Electrical
and Computer Engineering
Problem-Solving
Case Study
•Problem: You are asked to calculate the total cost of painting traffic cones in
three different colors. The cone company uses the area painted to estimate the total cost.
•Output: The surface area of the cone in square
feet, and the
costs of painting the cone in the three different colors, all displayed in floating point form to three decimal places.
•Discussion: Cones are measured in inches. A
typical cone is 30
inches high and 8 inches in diameter. Red, blue, and green paint cost 10,
15, and 18 cents per square foot, respectively. The non-base surface area of a cone is pr(r2 + h2)1/2, where r is the radius of the cone and h is its height.