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.

Request for Solution File

Ask an Expert for Answer!!
Programming Languages: Write a program to compute the diameter in centimeters of a
Reference No:- TGS01089543

Expected delivery within 24 Hours