Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  emcosti
Language: C/C++
Code:
#include <iostream>
//#include <string>
#include <cstdlib>
using namespace std;
int main()
{
     //string tip_dvig;
     int tip;
     double cp,c_pusc,power,u_seti,cos_fi,cpd,i;
     
     u_seti= 220;
     cos_fi= 0.8;
     cpd= 0.85;
     cout <<"Vedite mosnosti dvigatelia : ";
     cin>>power;
     i= power/(1.73*u_seti*cos_fi*cpd);
     cout <<"Esli dvigateli soedinen \ntreugolinikom to--1, \nesli zvezdoi--0 :"<<endl;
     cin>>tip;
          if (tip==1){
               cp= (4800*(i/u_seti))/1.55;
               c_pusc= 2.5*cp;
               cout<<"Podklucenie   <<Treugolnikom>> \nDlia napriajenia= 220 v "<<"\nRabocii condensator= "<<cp<<endl;
               cout<<"Puskovoi condensator= "<<c_pusc<<endl;
               system ("pause");
               
               return 0;

}
          else;

               i= power/(1.73*u_seti*cos_fi*cpd);
               cp= (2800*(i/u_seti))/1.756;
               c_pusc= 2.5*cp;
               cout<<"Podklucenie   <<zvezdoi>> nnapriajenie seti= 220 v "<<"nRabocii condensator= "<<cp<<endl;
               cout<<"Puskovoi condensato= "<<c_pusc<<endl;
               system ("pause");


return 0;

}

          
          
Comments: