Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

A Company manufactures traffic cones. The company is preparing to bid on a project that will require it to paint its cones in different colors.

A Company manufactures traffic cones. The company is preparing to bid on a project that will require it to paint its cones in different colors. It also wants to estimate the total cost from the area to be painted. The company has hired you to write a program in C++ that will compute the surface area of a cone and the cost of painting it given its radius, its height, and the cost per square foot of three different colors of paint. Requirements: A typical cone is 30 inches high and 8 inches in diameter. The orange paint costs 30.5 rupees per square foot; the blue costs 15.25 rupees; and the green costs 20.75 rupees. The area of a cone (not including its base, which won't be painted) equals Surface Area = r (r2 + heightInFeet), where r is the radius of the cone and h is its height. One feet = 12 Inches Output: The surface area of the cone in square feet, and the costs of painting the cone in the three different colors, must be displayed in floating point form to three decimal places.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

Did you offer hard data that is verifiable? [D]

Answered: 1 week ago