Question: Write java program to evaluate the following polynomial function : f(x) = 2x3 + 3x2 5x + 8 Prompt user to enter a floating-point number
Write java program to evaluate the following polynomial function : f(x) = 2x3 + 3x2 5x + 8 Prompt user to enter a floating-point number and store it in variable x, evaluate function and display message: function f([x-value]) = [result-value] [x-value] and [result-value] should be replaced by real numbers. For example, if input x is 1, display message function f(1.0) = 8.0.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
