1. Write a program to compute the diameter in centimeters of a steel rod, an aluminum rod, and a copper rod, which can withstand a particular compression load. The allowable compression stress of steel, aluminum, and copper is 25,000 lbs. /m2, 15,000lbs/m2, and 20,000lbs/m2, respectively. In program, algorithm.
Area of rod= compression load/allowable compression stress
Area= π r2 where diameter d= 2r