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

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

1 Expert Approved Answer
Step: 1 Unlock

java import javautilScanner import javautilStringTokenizer public class PolynomialEvaluator public s... View full answer

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 Programming Questions!