write my assignment 9614

Need help making the program below work. Must be in C only.Write a MAIN function and the following funcations to compute the stress and strain in a steel rod of diameter D (inches) and length L (inches) subject to the compress loads P of 10,000 to 1,000,000 pounds in increments of 100,000 pounds. The modulus of elasticity E for steel is 30 x 10 to the 6th power.A function to compute the stress from the formulas:stress f = P/AWhere A = PI Dsquared/4.0A funcation to compute the strain from the formulas:elondated or shortened length (delta)L=fL/Estrain e = (delta)L/L =f/eA funcation to output the stress and strain at differant loads of PMain******************************* * *calculate stress calculate strain outputThe functions should call each other as shown in the chart above.

#include<stdio.h> #include<conio.h> void main() { clrscr(); printf("The stress is "); stress(12); printf("The strain is "); strain(23); } int stress(double D) {…

"Not answered?"
Get the Answer