In C: Write a program to compute the diameter in centimeters of a steel rod, an
ID: 3625964 • Letter: I
Question
In C: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,000 lbs/ms, and 20,000 lbs/m2, respectively. area of rod = compression load/allowable compression stress and area = PIr2 where diameter d = 2r
Input the compression load. Print the tyoe of material, load, allowable stress, and diameter. Use formatted output with field width specifications that align the output.
Explanation / Answer
#include #include using namespace std; const double PI=3.14; void main() { double load,area,dia,radius,; //inputting load coutRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.