Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Write a main function and the following functions to compute the stress and stra

ID: 3636309 • Letter: W

Question

Write a main function and the following functions to compute the stress and strain in a steel rod of diameter D (inches) and length L (inches) subject to the compression loads P of 10,000 to 1,000,000 lbs. in increments of 100,000 pounds. The modulus of elasticity E for steel is 30 x 10^6
Function to compute stress from the formulas
Stress f = P/A where A = ?D^2/4.0
Function to compute strain from the formulas
Elongated of shortened length ? L = fL/E strain e = ? L/L = f/E
Functioin to output the stress and strain at different loads of P

Main

Calculate stress calculate strain output

The functions should call each other as shown in the above structure

Explanation / Answer

#include #include float compute_stress(); float compute_strain(); float output_results(); int main( ) { float compute_stress (float stress, int p); float compute_strain (float strain); void output_results(float stress, float strain, int p); return 0; } float compute_stress() { const float PI = 3.141593; float stress, diam , area; printf("Enter diameter: "); scanf("%d", &diam); area=(PI * (diam *diam ))/4; { float p; for(p=10000; p
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote