Question: Create a class called Polynomial Evaluator which does the following: Prompts the user for a polynomial of the form: e.g. f(x)=3x^3-5x^2 +1x^4 +9x^6 +3.1x^1

Create a class called Polynomial Evaluator which does the following: Prompts the user for a polynomial of the form: e.g. f(x)=3x^3-5x^2 +1x^4 +9x^6 +3.1x^1 +2 (note the spaces) Prompts the user for an x value: e.g. -5 Displays the value of f(x): e.g. f(-5)=140736.5 You can assume that all terms will have a coefficient in front of them even when it is 1 and that degree one terms will have their exponent written You will find the StringTokenizer class to be useful in breaking the polynomial
Step by Step Solution
There are 3 Steps involved in it
java import javautilScanner import javautilStringTokenizer public class PolynomialEvaluator public s... View full answer
Get step-by-step solutions from verified subject matter experts
