Question
c++
Program 5: The load, Per, in units of kips, applied to a column that causes the column to buckle is referred to as the critic
0 0
Add a comment Improve this question Transcribed image text
Answer #1

#source code:

#include <iostream>

#include <cmath>

#include <ctime>

using namespace std;

double load(double E,double A,double L,double r){

const double PI=3.1415;

return (pow(PI,2)*E*A)/pow(L/r,2);

}

int main(){

srand (time(NULL));

int E= rand() % 80 + 1;

int A= rand() % 80 + 1;

int L= rand() % 80 + 1;

int r= rand() % 80 + 1;

cout<<"E:"<<E<<endl;

cout<<"A:"<<A<<endl;

cout<<"L:"<<L<<endl;

cout<<"r:"<<r<<endl;

cout<<"Pcr:"<<load(E,A,L,r)<<endl;

return 0;

}

#source code along with output:

1 2 3 4 5 6 7 #include <iostream> #include <cmath> #include <ctime> using namespace std; double load(double E, double A, doub

#if you have any doubt or more information needed comment below..i will respond as possible as soon..thanks...

Add a comment
Know the answer?
Add Answer to:
c++ Program 5: The load, Per, in units of kips, applied to a column that causes...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Required Information Euler's buckling formula can be expressed as Po (RE) where P is the critical...

    Required Information Euler's buckling formula can be expressed as Po (RE) where P is the critical buckling load, Eis the column's Young's modulus, is the column's moment of Inertia, and L is the column's length. Derived using a quantity called effective length, the constant K depends upon the column's end conditions This problem will compare various end conditions of a slender column under compression. The studied column has a length of 2 - 1 meters, and its square cross-section has...

  • Length of Aluminum cylinder 100mm load applied : 100N diameter : 10mm max force : 15.01KN modulus...

    length of Aluminum cylinder 100mm load applied : 100N diameter : 10mm max force : 15.01KN modulus ( Automatic young’s) : 8254.64MPa The compression tests to be performed are focused on exhibiting the following types of instabilities in compression: Toble 1: L/D Ratio and Type of instability LD Ratio Type of Instability Buckling Shearing Double Barreling Barreling 5 or larger 25 LD5 2 < LD <2.5 Less than 2 with friction Less than 2 without friction Note that the friction...

  • Ideal Column with Pin Supports Learning Goal: To use the formula for the critical load, i.e.,...

    Ideal Column with Pin Supports Learning Goal: To use the formula for the critical load, i.e., the Euler buckling load, for pin-supported columns to calculate various parameters of columns. Ideally, a column that is perfectly straight and has an axial load applied exactly at the centroid of its cross section will not yield until the internal normal stress reaches the yield stress of the material. Real-world columns, however, are subject to small asymmetries, whether due to irregularities of shape or...

  • Design the cooling system used to manufacture the leg of a table, shown in Fig.2. You...

    Design the cooling system used to manufacture the leg of a table, shown in Fig.2. You will have to determine the required diameter D so that the leg can withstand 100 kg of axial loading. Once the diameter has been determined, you will need to determine the Revolutions per Minute (RPMs) of the fan needed to cool down the leg to 90-C in less than 2 minutes before it starts deforming after being 3D printed. Consider the leg of the...

  • Need help on how to make an excel spreadsheet that will have drop down options that...

    Need help on how to make an excel spreadsheet that will have drop down options that reference to cells on another sheet if possible or to the same sheet if not. The drop downs need to be for the material type such as 6061-T6 Aluminum. When the material is selected from the dropdown I need it to fill in values in the cells for the Yield Strength and Mod of elast. at the same time based off of the values...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT