Write a program to compute the diameter in centimeters of a


Write a program to compute the diameter in centimeters of a steel rod, an aluminum rod, and copper rod, which can withstand a particular compression load. The allowable compression stress of steel, aluminum, and copper is 25,000lbs/m^2, 15,000lbs/m^2, and 20,000lbs/m^2, respectively.

compression load

area of rod = ---------------------------------------

allowable compression stress

area = 3.1415r^2 where diameter d = 2r

Input the compression load. Print the type of material, load, allowable stress, and diameter. Use formatted output with field width specifications that align the output.

Solution Preview :

Prepared by a verified Expert
Programming Languages: Write a program to compute the diameter in centimeters of a
Reference No:- TGS01670155

Now Priced at $35 (50% Discount)

Recommended (93%)

Rated (4.5/5)