Electrical and Computer Engineering
49 of 52
UAH
CPE 112
ConePaint Program
•//****************************************************************
•// This program computes the cost of painting traffic cones in
•// each of three different colors, given the height and diameter
•// of a cone in inches, and the cost per square foot of each of
•// the paints
•//****************************************************************
•#include <iostream>
•#include <iomanip>    // For setw() and setprecision()
•#include <cmath>      // For sqrt()
•
•using namespace std;
•
•const float HT_IN_INCHES = 30.0;    // Height of a typical cone
•const float DIAM_IN_INCHES = 8.0;   // Diameter of base of cone
•const float INCHES_PER_FT = 12.0;   // Inches in 1 foot
•