Question: polynomial is given by p = - 6 . 5 u 2 + 9 . 0 u - 2 . 5 . Declare double variables

polynomial is given by p=-6.5u2+9.0u-2.5. Declare double variables u and p. Then, read u from input and compute p sing the polynomial.
k: If the input is 1.8, then the output is:
7.360
ote: u2 can be computed using Your code goes here */
System.out.printf("%.3f
", p);
}
}
 polynomial is given by p=-6.5u2+9.0u-2.5. Declare double variables u and p.

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!