Write a program to compute the diameter in centimeters

profileTopsolutions
 (Not rated)
 (Not rated)
Chat

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.

    • 12 years ago
    complete solution A++
    NOT RATED

    Purchase the answer to view it

    blurred-text
    • attachment
      diameter.c