432,109 Members | 1,007 Online + Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,109 IT Pros & Developers. It's quick & easy.

# Problems compiling this program

 P: n/a Expand|Select|Wrap|Line Numbers #include #include #include #include {      double compute(double ws)      double sqrt(double r)      double main()      {         double mf,v,a,q,h,sv,z,r,ans2,c,ws;         double g = 9.8;           cout<<"Device: Centrifugal compressor ";         cout<<"Mass flow rate mf (Kg/min) = ";         cin>>mf;                 mf = mf/60;           cout<<"Conditions at inlet: ";         cout<<"v1 (m/s) = ";         cin>>v;         cout<<"h1 (KJ/Kg) = ";         cin>>h;         cout<<"Specific volume (cubic meter/Kg) = ";         cin>>sv;         cout<<"Height of inlet above the ground z1 = ";         cin>>z;         cout<<"Condition at exit: ";         cout<<"v2 (m/s) = ";         cin>>v;         cout<<"h2 (KJ/Kg) = ";         cout<<"Specific volume (cubic meter/Kg) = ";         cin>>sv;         cout<<"Height of outlet above the ground z2 = ";         cin>>z;         cout<<"Heat loss to cooling water q (KJ/min) = ";         cin>>q;         cout<<"From SFEE ";             double compute()          {          ws = -1*(mf((h-h)+1/2(v*v-v*v+g(z-z))+q);          if (z=z)          {                 g(z-z) = 0;          }            cout<<"Thus the power of motor required to drive the compressor is = "< 