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;
}
}
}
renad commented: NICE STEP TO SOLVE THIS IN C++ +0

Sorry. But you said you were new into programming, when did you start?

1 month ..

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.