Write a main function and the following functions


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/A

Where A = PI Dsquared/4.0

A funcation to compute the strain from the formulas:

elondated or shortened length (delta)L=fL/E

strain e = (delta)L/L =f/e

A funcation to output the stress and strain at differant loads of P

Main
*
*****************************
* * *
calculate stress calculate strain output

The functions should call each other as shown in the chart above.

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Write a main function and the following functions
Reference No:- TGS0135191

Expected delivery within 24 Hours