I am trying to figure out how to call for a function. I have to be able to enter a load amount and see if it passes three tests. These are the equations given.
Buckling Load:
Max Load = (0.3*E*area) / ((length/width) * (length/width))
Compressive stress:
Max Load = area * maximum compressive strength
Slenderness limits:
Length/width <= 50
E is the modulus of elasticity (1,700,000 psi), the area is the cross-sectional area in square inches and the maximum compressive strength = 445 psi (Douglas fir). Assume the columns to be used are square and are available in intervals of 2 inches (2x2, 4x4, 6x6, etc.). I have to use a different function for each one! HELP :/
I currently have :
{
int strength, area, length, width, e, maxLoad, bucklingLoad, compressiveLoad, slenderness;
float bucklingLoad;
e = 1700000,
maxLoad =
cout << "Jessica's Engineering Company Analysis" ;
cout << "\n*************************************";
cout <<"\n\nPlease enter the expected load on the column in pounds: ";
cin << maxLoad;
cout << "\nPlease enter the length of the column in inches: ";
cin << length;
cout << "\n\n_Beam with wide of 2 inches - " ;
cout << "\n_Beam with wide of 4 inches - " ;
cout << "\n_Beam with wide of 6 inches - " ;
cout << "\n_Beam with wide of 8 inches - " ;
}