Question: Write a c + + program to compute the evaluation of a user - defined cubic polynomial at x = 2 . Recall that a

Write a c++program to compute the evaluation of a user-defined cubic polynomial at
x =2. Recall that a cubic polynomial is any function f of the form
f (x)= ax3+ bx2+ cx + d,
where a, b, c and d are real numbers, which the user will specify. The evaluation of f
at x =2 is therefore given by
f (2)=8a +4b +2c + d.
You should first ask the user to specify a polynomial by writing a string in the following
format:
f(x)=[number]*x^3+[number]*x^2+[number]*x+[number]
For example, f(x)=0.5*x3-2*x2+3*x-5.3 is a valid input. Your output should
seek to emulate and mimic the following example. Here, the entire third line is the
user input

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!