Hi ..
i am new in programing and i need to solve this problem ..so far i have done few things but there are some thing missing which i can understand ....so plz help..


The program is to be used to calculate the loading on a beam by a single point load which can be positioned at any point along the length of the beam.

The length of the beam (L) and the load (F) is to specified by the user when the program is run.

For the specified beam length and point load is to generate a table of beam reactions at point R1 and R2 when the load is placed at the eleven position equi-spaced as indicated in the fig1.The formulae required are given in fig2.

If requied the program should also indicate the beam reactions when the point load is poistioned at any user specified position which may be different from the eleven postion in fig2.

The program should offer the user another run if required.

#include <iostream.h>
#include <conio.h>
#include <stdlib.h>

void main()
// Taking Data
{
 float f,l,x;
 float r1,r2;

cout<<"--------------------------------------------"<<endl;

//Taking Input
cout<<" Enter the beam  ";
cin>>l;
cout<<"--------------------------------------------"<<endl;

cout<<" Enter the load  ";
cin>>f;
cout<<"--------------------------------------------"<<endl;

/*cout<<" Enter the position  ";
cin>>x;
cout<<"--------------------------------------------"<<endl;
*/
system("cls");
for (x=10;x<=l;x+=10)
{

if (l==x)
{
cout<<"--------------------------------------------"<<endl;
r2=f/l*(x);
cout<<"R2  "<<r2<<endl;
}
else if (l>x)
{
cout<<"--------------------------------------------"<<endl;
r1=f/l*(l-x);
cout<<"R1  "<<r1<<endl;
}
}
}

Edited 7 Years Ago by hotice47: n/a

Comments
NICE STEP TO SOLVE THIS IN C++
Attachments The_length_of.png 8.4 KB
This article has been dead for over six months. Start a new discussion instead.