a manufacturer wishes to determine the cost of producing the top for a cylindrical container. The cost of each top will be cost dollars per square inch of the material needed to produce the top. The amount of material needed for each top is the area of the top , which is circular. Recall that the area of a circle is pi times the radius squared. Write a program to read in the radius (Radius) of a top, the cost per square inch of the top (cost), and the number of tops to be produced (Quant). Calculate the final cost of producing all the tops
Explanation / Answer
#include using namespace std; int main() { double radius = 0; double cost_per_sq_in = 0; double quantity = 0; double pi = 3.1459; coutradius; coutcost_per_sq_in; coutquantity; cout