blt_colu

Upload: anonymous-hj7hmihh

Post on 07-Jul-2018

214 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/18/2019 BLT_COLU

    1/8

    //Generalized Program to design Built up Column

    #include#include#include#include#includeclass blt_clmn{

    protected:int P,degree,y_stress;float factor,l;public:void getdata !;void analysedata !;

    ";class cpsn_mbr :public blt_clmn{

    public:char sect_n $%;float sp_channel,p_stress&;int b,t;float area,r',a_re(d,)**,+**,p,sl_ratio,dim',dim&,dim;int p_stress,section,depth;float sp_section,sp_channel ,s_load,factor&,g_area,e_l,a_prov;float s_ratio,r_min,)*,)y,+y,sp_channel';void designdata !;

    ";class dsgn_lacing :public cpsn_mbr {

    public:int sp_lc,t_lacing,-_lacing,p_stress ,n_rivets&;float t_shear,t_stress,c_stress,f_lacing,ry,el_lacing,sratio_lacing&;float sratio_lacing,m-_lacing,mt_lacing,s_shear,s_bearing,r_value,n_rivets;void analysedata& !;void e_cnts !;void sho-data !;void printline !;

    ";void blt_clmn::getdata(){

    cout>P;cout>l;cout

  • 8/18/2019 BLT_COLU

    2/8

    cin>>y_stress;cout>degree;

    "void blt_clmn::analysedata()

    { s-itch degree!{case ':{ factor56.78; brea0; " // !!ective "engt# o! col$mncase &:{ factor56.96; brea0; " //as per degree o! restraintcase :{ factor5'.66; brea0; " //o! t#e compression member case $:{ factor5'.&6; brea0; " //as per %&:' 1 '4 *la$se 5.2.2case 8:{ factor5'.86; brea0; "case 7:{ factor5&.66; brea0; "case :{ factor5&.66; brea0; "default:

    { cout

  • 8/18/2019 BLT_COLU

    3/8

    cout>sect_n;brea0;

    "

    case &:{cout>sect_n;brea0;

    "default:{

    cout

  • 8/18/2019 BLT_COLU

    4/8

    if s_load

  • 8/18/2019 BLT_COLU

    5/8

    "sratio_lacing5 sp_lc '6! ry;el_lacing5 '.$'$ sp_lc '6 &!;mt_lacing5 el_lacing! $6.66; //-s per %& ' :1 '4m-_lacing576.66; // sing 2 mm pds rivets

    start': cout5'$8.66!{

    cout>p_stress ;t_shear5 &.8 P '66.66!;f_lacing5 t_shear &.66 6. 6 !;t_stress5 f_lacing t_lacingF&'.8! -_lacing!; // sing 2 mmpds rivetsif t_stress>5 6.7 y_stress!!{

    coutp_stress !{

    cout

  • 8/18/2019 BLT_COLU

    6/8

    s_shear5 '66.66 .'$ &'.8 &'.8! '666.66 $.66!; Lsing &6mm pds rivetss_bearing5 66.66 &'.8 t_lacing! '666.66;if s_shear

  • 8/18/2019 BLT_COLU

    7/8

    cout

  • 8/18/2019 BLT_COLU

    8/8