write the answer for this program quicly and i\'ll rate you good. Write a functi
ID: 3533846 • Letter: W
Question
write the answer for this program quicly and i'll rate you good.
Explanation / Answer
#include <iostream>
#include<math>
using namespace std;
double func(double x)
{
double result;
result =(2*pow(x,3)+x+3)/(x-1);
return result;
}
int main()
{
cout<<"Enter the value of x ";
double x,result;
cin>>x;
if (x>=0.99999 && x<=1.00001)
cout<<"The value of x out of range ";
else
{
result=func(x);
cout<<"The result of the fraction is "<<result<<endl;
system("pause");
}
return 0;
}
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.