Question: A polynomial is given by . Declare double variables w and q . Then, read w from input and compute q using the polynomial. Ex:

A polynomial is given by
. Declare double variables w and q. Then, read w from input and compute q using the polynomial.
Ex: If the input is 3.4, then the output is:
-124.900
Note:
can be computed using *. #include
#include
using namespace std;
int main(){
/* Your code goes here */
cout << fixed << setprecision(3)<< q << endl;
return 0;
}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!